home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Newton Sample Code 1.2 / Views / Q&A Views < prev    next >
MacBinary  |  1994-07-11  |  161.3 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Fri Jul 8 08:53:35 1994, modified Mon Jul 11 08:50:24 1994, creator 'HLX2', type 'ONLN', 158300 bytes "Q&A Views" , at 0x26adc 6557 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 51 26 41 20 56 69 | 65 77 73 00 00 00 00 00 |..Q&A Vi|ews.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 02 6a 5c 00 | 00 19 9d aa 42 fc cf aa |.....j\.|....B...|
|00000060| 46 f0 90 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |F.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 de bd 00 00 |........|........|
|00000080| 56 49 45 57 53 0d a9 20 | 43 6f 70 79 72 69 67 68 |VIEWS.. |Copyrigh|
|00000090| 74 20 31 39 39 33 2d 39 | 34 20 41 70 70 6c 65 20 |t 1993-9|4 Apple |
|000000a0| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2c 20 41 |Computer|, Inc, A|
|000000b0| 6c 6c 20 52 69 67 68 74 | 73 20 52 65 73 65 72 76 |ll Right|s Reserv|
|000000c0| 65 64 0d 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ed._____|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000f0| 0d 09 0d 49 6e 74 72 6f | 64 75 63 74 69 6f 6e 0d |...Intro|duction.|
|00000100| 54 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 20 61 64 |This doc|ument ad|
|00000110| 64 72 65 73 73 65 73 20 | 4e 65 77 74 6f 6e 20 56 |dresses |Newton V|
|00000120| 69 65 77 20 73 79 73 74 | 65 6d 20 69 73 73 75 65 |iew syst|em issue|
|00000130| 73 20 74 68 61 74 20 61 | 72 65 20 6e 6f 74 20 61 |s that a|re not a|
|00000140| 76 61 69 6c 61 62 6c 65 | 20 69 6e 20 74 68 65 20 |vailable| in the |
|00000150| 63 75 72 72 65 6e 74 6c | 79 20 70 72 69 6e 74 65 |currentl|y printe|
|00000160| 64 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |d docume|ntation |
|00000170| 2e 20 50 6c 65 61 73 65 | 20 6e 6f 74 65 20 74 68 |. Please| note th|
|00000180| 61 74 20 74 68 69 73 20 | 69 6e 66 6f 72 6d 61 74 |at this |informat|
|00000190| 69 6f 6e 20 69 73 20 73 | 75 62 6a 65 63 74 20 74 |ion is s|ubject t|
|000001a0| 6f 20 63 68 61 6e 67 65 | 20 61 73 20 74 68 65 20 |o change| as the |
|000001b0| 4e 65 77 74 6f 6e 20 74 | 65 63 68 6e 6f 6c 6f 67 |Newton t|echnolog|
|000001c0| 79 20 61 6e 64 20 64 65 | 76 65 6c 6f 70 6d 65 6e |y and de|velopmen|
|000001d0| 74 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 65 76 |t enviro|nment ev|
|000001e0| 6f 6c 76 65 2e 0d 41 6e | 20 65 6e 74 72 79 20 74 |olve..An| entry t|
|000001f0| 68 61 74 20 68 61 73 20 | 63 68 61 6e 67 65 64 20 |hat has |changed |
|00000200| 73 69 6e 63 65 20 74 68 | 65 20 6c 61 73 74 20 64 |since th|e last d|
|00000210| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 6f 66 20 74 |istribut|ion of t|
|00000220| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 20 69 73 20 |his docu|ment is |
|00000230| 64 69 73 74 69 6e 67 75 | 69 73 68 65 64 20 62 79 |distingu|ished by|
|00000240| 20 74 68 65 20 70 72 65 | 66 69 78 20 4e 45 57 20 | the pre|fix NEW |
|00000250| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | at the |beginnin|
|00000260| 67 20 6f 66 20 74 68 65 | 20 73 75 62 6a 65 63 74 |g of the| subject|
|00000270| 20 68 65 61 64 69 6e 67 | 20 2c 20 6f 72 20 69 66 | heading| , or if|
|00000280| 20 74 68 65 20 65 6e 74 | 72 79 20 68 61 73 20 63 | the ent|ry has c|
|00000290| 68 61 6e 67 65 64 2c 20 | 6d 61 72 6b 65 64 20 77 |hanged, |marked w|
|000002a0| 69 74 68 20 43 48 41 4e | 47 45 44 2e 0d 54 41 42 |ith CHAN|GED..TAB|
|000002b0| 4c 45 20 4f 46 20 43 4f | 4e 54 45 4e 54 53 3a 0d |LE OF CO|NTENTS:.|
|000002c0| a5 20 53 69 7a 69 6e 67 | 20 61 6e 64 20 50 6f 73 |. Sizing| and Pos|
|000002d0| 69 74 69 6f 6e 69 6e 67 | 20 54 68 65 20 42 61 73 |itioning| The Bas|
|000002e0| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 56 69 |e Applic|ation Vi|
|000002f0| 65 77 20 28 39 2f 31 35 | 2f 39 33 29 20 28 4f 62 |ew (9/15|/93) (Ob|
|00000300| 73 6f 6c 65 74 65 64 20 | 62 79 20 4e 53 20 47 75 |soleted |by NS Gu|
|00000310| 69 64 65 20 0d 20 20 20 | 31 2e 30 20 46 69 6e 61 |ide . |1.0 Fina|
|00000320| 6c 20 44 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |l Docume|ntation |
|00000330| 32 2d 31 38 29 0d a5 20 | 49 72 69 73 4f 70 65 6e |2-18).. |IrisOpen|
|00000340| 45 66 66 65 63 74 20 76 | 65 72 73 75 73 20 5a 6f |Effect v|ersus Zo|
|00000350| 6f 6d 4f 70 65 6e 45 66 | 66 65 63 74 20 28 39 2f |omOpenEf|fect (9/|
|00000360| 31 35 2f 39 33 29 0d a5 | 20 42 61 73 65 20 41 70 |15/93)..| Base Ap|
|00000370| 70 6c 69 63 61 74 69 6f | 6e 20 56 69 65 77 20 53 |plicatio|n View S|
|00000380| 65 74 75 70 20 28 39 2f | 31 35 2f 39 33 29 20 28 |etup (9/|15/93) (|
|00000390| 4f 62 73 6f 6c 65 74 65 | 64 20 62 79 20 4e 53 20 |Obsolete|d by NS |
|000003a0| 47 75 69 64 65 20 31 2e | 30 20 66 69 6e 61 6c 20 |Guide 1.|0 final |
|000003b0| 0d 20 20 20 44 6f 63 75 | 6d 65 6e 74 61 74 69 6f |. Docu|mentatio|
|000003c0| 6e 20 33 2d 35 29 0d a5 | 20 74 61 62 53 65 74 75 |n 3-5)..| tabSetu|
|000003d0| 70 20 46 75 6e 63 74 69 | 6f 6e 73 20 61 6e 64 20 |p Functi|ons and |
|000003e0| 43 6f 6e 74 65 78 74 20 | 49 73 73 75 65 73 20 28 |Context |Issues (|
|000003f0| 39 2f 31 35 2f 39 33 29 | 0d a5 20 4c 69 67 68 74 |9/15/93)|.. Light|
|00000400| 77 65 69 67 68 74 20 63 | 6c 50 61 72 61 67 72 61 |weight c|lParagra|
|00000410| 70 68 56 69 65 77 73 20 | 28 39 2f 31 35 2f 39 33 |phViews |(9/15/93|
|00000420| 29 20 28 4f 62 73 6f 6c | 65 74 65 2c 20 44 6f 63 |) (Obsol|ete, Doc|
|00000430| 75 6d 65 6e 74 65 64 20 | 69 6e 20 4e 50 47 20 31 |umented |in NPG 1|
|00000440| 2e 30 20 34 2d 31 35 29 | 2e 0d a5 20 53 61 76 69 |.0 4-15)|... Savi|
|00000450| 6e 67 20 63 6c 45 64 69 | 74 56 69 65 77 20 63 6f |ng clEdi|tView co|
|00000460| 6e 74 65 6e 74 73 20 74 | 6f 20 61 20 53 6f 75 70 |ntents t|o a Soup|
|00000470| 20 28 31 30 2f 34 2f 39 | 33 29 0d a5 20 4b 65 79 | (10/4/9|3).. Key|
|00000480| 62 6f 61 72 64 42 75 74 | 74 6f 6e 20 28 31 30 2f |boardBut|ton (10/|
|00000490| 38 2f 39 33 29 0d a5 20 | 53 65 74 75 70 50 6f 70 |8/93).. |SetupPop|
|000004a0| 4d 61 72 6b 20 61 6e 64 | 20 43 6c 65 61 72 50 6f |Mark and| ClearPo|
|000004b0| 70 75 70 4d 61 72 6b 20 | 28 31 30 2f 31 34 2f 39 |pupMark |(10/14/9|
|000004c0| 33 29 0d a5 20 47 72 6f | 77 20 45 66 66 65 63 74 |3).. Gro|w Effect|
|000004d0| 20 28 31 31 2f 31 30 2f | 39 33 29 0d a5 20 76 69 | (11/10/|93).. vi|
|000004e0| 65 77 46 6f 72 6d 61 74 | 20 56 61 6c 75 65 20 43 |ewFormat| Value C|
|000004f0| 68 61 6e 67 65 73 20 28 | 31 31 2f 31 30 2f 39 33 |hanges (|11/10/93|
|00000500| 29 0d a5 20 47 65 74 48 | 69 6c 69 74 65 4f 66 66 |).. GetH|iliteOff|
|00000510| 73 65 74 73 20 28 31 31 | 2f 31 30 2f 39 33 29 20 |sets (11|/10/93) |
|00000520| 28 4f 62 73 6f 6c 65 74 | 65 64 20 62 79 20 4e 53 |(Obsolet|ed by NS|
|00000530| 20 47 75 69 64 65 20 31 | 2e 30 20 46 69 6e 61 6c | Guide 1|.0 Final|
|00000540| 20 44 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 32 | Documen|tation 2|
|00000550| 2d 38 39 29 0d a5 20 52 | 65 6a 65 63 74 69 6e 67 |-89).. R|ejecting|
|00000560| 20 56 69 65 77 20 41 64 | 64 69 74 69 6f 6e 73 20 | View Ad|ditions |
|00000570| 28 31 31 2f 31 30 2f 39 | 33 29 0d a5 20 52 65 73 |(11/10/9|3).. Res|
|00000580| 69 7a 69 6e 67 20 63 6c | 50 61 72 61 67 72 61 70 |izing cl|Paragrap|
|00000590| 68 56 69 65 77 20 28 31 | 31 2f 31 30 2f 39 33 29 |hView (1|1/10/93)|
|000005a0| 0d a5 20 4b 65 79 62 6f | 61 72 64 20 49 63 6f 6e |.. Keybo|ard Icon|
|000005b0| 20 50 6f 70 75 70 73 20 | 28 31 31 2f 31 31 2f 39 | Popups |(11/11/9|
|000005c0| 33 29 20 28 4f 62 73 6f | 6c 65 74 65 64 20 62 79 |3) (Obso|leted by|
|000005d0| 20 4e 65 77 74 6f 6e 20 | 50 72 6f 67 72 61 6d 6d | Newton |Programm|
|000005e0| 65 72 73 20 47 75 69 64 | 65 20 31 2e 30 0d 20 20 |ers Guid|e 1.0. |
|000005f0| 20 44 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 32 | Documen|tation 2|
|00000600| 2d 31 30 30 2c 31 30 33 | 29 0d a5 20 4d 61 73 6b |-100,103|).. Mask|
|00000610| 69 6e 67 20 43 6c 69 63 | 6b 73 20 46 72 6f 6d 20 |ing Clic|ks From |
|00000620| 56 69 65 77 73 20 28 31 | 31 2f 31 31 2f 39 33 29 |Views (1|1/11/93)|
|00000630| 20 28 4f 62 73 6f 6c 65 | 74 65 64 20 62 79 20 4e | (Obsole|ted by N|
|00000640| 65 77 74 6f 6e 20 50 72 | 6f 67 72 61 6d 6d 65 72 |ewton Pr|ogrammer|
|00000650| 73 20 47 75 69 64 65 0d | 20 20 20 31 2e 30 20 44 |s Guide.| 1.0 D|
|00000660| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 32 2d 31 |ocumenta|tion 2-1|
|00000670| 35 2c 32 2d 31 36 29 0d | a5 20 63 6c 4d 61 74 68 |5,2-16).|. clMath|
|00000680| 45 78 70 56 69 65 77 2c | 20 63 6c 4d 61 74 68 4f |ExpView,| clMathO|
|00000690| 70 56 69 65 77 20 61 6e | 64 20 63 6c 4d 61 74 68 |pView an|d clMath|
|000006a0| 4c 69 6e 65 56 69 65 77 | 3f 20 28 31 31 2f 31 32 |LineView|? (11/12|
|000006b0| 2f 39 33 29 0d a5 20 76 | 66 50 65 6e 20 61 6e 64 |/93).. v|fPen and|
|000006c0| 20 76 66 49 6e 73 65 74 | 20 2d 2d 20 43 6f 6d 70 | vfInset| -- Comp|
|000006d0| 69 6c 65 20 54 69 6d 65 | 20 4f 6e 6c 79 20 46 75 |ile Time| Only Fu|
|000006e0| 6e 63 74 69 6f 6e 73 20 | 28 31 31 2f 31 35 2f 39 |nctions |(11/15/9|
|000006f0| 33 29 0d a5 20 4e 6f 20 | 53 70 61 63 65 73 2c 20 |3).. No |Spaces, |
|00000700| 76 4e 6f 53 70 61 63 65 | 73 2c 20 76 53 69 6e 67 |vNoSpace|s, vSing|
|00000710| 6c 65 55 6e 69 74 20 28 | 31 32 2f 31 39 2f 39 33 |leUnit (|12/19/93|
|00000720| 29 20 28 6d 6f 76 65 64 | 20 57 72 69 74 74 65 6e |) (moved| Written|
|00000730| 20 49 6e 70 75 74 20 61 | 6e 64 20 52 65 63 6f 67 | Input a|nd Recog|
|00000740| 2e 29 0d a5 20 49 63 6f | 6e 20 41 6e 69 6d 61 74 |.).. Ico|n Animat|
|00000750| 69 6f 6e 20 28 31 32 2f | 31 39 2f 39 33 29 0d a5 |ion (12/|19/93)..|
|00000760| 20 54 65 78 74 43 68 61 | 6e 67 65 64 20 4d 65 74 | TextCha|nged Met|
|00000770| 68 6f 64 20 61 6e 64 20 | 4b 65 79 62 6f 61 72 64 |hod and |Keyboard|
|00000780| 73 20 28 31 32 2f 31 39 | 2f 39 33 29 0d a5 20 4b |s (12/19|/93).. K|
|00000790| 65 79 49 6e 20 28 31 32 | 2f 32 33 2f 39 33 29 0d |eyIn (12|/23/93).|
|000007a0| a5 20 43 75 73 74 6f 6d | 20 46 69 6c 6c 73 20 28 |. Custom| Fills (|
|000007b0| 31 2f 34 2f 39 34 29 20 | 28 4f 62 73 6f 6c 65 74 |1/4/94) |(Obsolet|
|000007c0| 65 64 20 62 79 20 4e 65 | 77 74 6f 6e 20 50 72 6f |ed by Ne|wton Pro|
|000007d0| 67 72 61 6d 6d 65 72 73 | 20 47 75 69 64 65 20 31 |grammers| Guide 1|
|000007e0| 2e 30 20 44 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |.0 Docum|entation|
|000007f0| 0d 20 20 20 32 2d 33 32 | 29 0d a5 20 54 65 6c 6c |. 2-32|).. Tell|
|00000800| 69 6e 67 20 69 66 20 61 | 20 76 69 65 77 20 69 73 |ing if a| view is|
|00000810| 20 68 69 6c 69 74 65 64 | 2e 20 28 31 2f 31 33 2f | hilited|. (1/13/|
|00000820| 39 34 29 0d a5 20 50 49 | 43 54 73 20 69 6e 20 70 |94).. PI|CTs in p|
|00000830| 6f 70 75 70 73 20 20 28 | 32 2f 33 2f 39 34 29 0d |opups (|2/3/94).|
|00000840| a5 20 27 76 69 65 77 46 | 72 6f 6e 74 4d 6f 73 74 |. 'viewF|rontMost|
|00000850| 20 54 65 73 74 69 6e 67 | 2c 20 47 65 74 56 69 65 | Testing|, GetVie|
|00000860| 77 20 28 33 2f 32 35 2f | 39 34 29 0d a5 20 57 61 |w (3/25/|94).. Wa|
|00000870| 72 6e 69 6e 67 20 75 73 | 69 6e 67 20 61 20 6d 65 |rning us|ing a me|
|00000880| 74 68 6f 64 20 66 6f 72 | 20 6b 65 79 52 65 73 75 |thod for| keyResu|
|00000890| 6c 74 20 28 33 2f 32 38 | 2f 39 34 29 0d a5 20 4e |lt (3/28|/94).. N|
|000008a0| 75 6d 65 72 69 63 20 49 | 6e 70 75 74 20 46 69 65 |umeric I|nput Fie|
|000008b0| 6c 64 73 2c 20 53 70 61 | 63 65 73 20 61 6e 64 20 |lds, Spa|ces and |
|000008c0| 52 65 63 6f 67 6e 69 74 | 69 6f 6e 20 28 34 2f 38 |Recognit|ion (4/8|
|000008d0| 2f 39 34 29 0d a5 20 76 | 69 65 77 3a 48 69 6c 69 |/94).. v|iew:Hili|
|000008e0| 74 65 20 72 65 71 75 69 | 72 65 73 20 76 69 65 77 |te requi|res view|
|000008f0| 4a 75 73 74 69 66 79 20 | 28 34 2f 32 30 2f 39 34 |Justify |(4/20/94|
|00000900| 29 0d a5 20 63 6c 50 61 | 72 61 67 72 61 70 68 56 |).. clPa|ragraphV|
|00000910| 69 65 77 73 20 74 72 69 | 6d 20 74 6f 20 70 61 72 |iews tri|m to par|
|00000920| 65 6e 74 27 73 20 72 69 | 67 68 74 20 65 64 67 65 |ent's ri|ght edge|
|00000930| 20 28 34 2f 32 30 2f 39 | 34 29 0d a5 20 52 65 70 | (4/20/9|4).. Rep|
|00000940| 65 61 74 20 52 61 74 65 | 20 66 6f 72 20 63 6c 4b |eat Rate| for clK|
|00000950| 65 79 62 6f 61 72 64 56 | 69 65 77 73 20 28 34 2f |eyboardV|iews (4/|
|00000960| 32 30 2f 39 34 29 0d a5 | 20 43 48 41 4e 47 45 44 |20/94)..| CHANGED|
|00000970| 3a 20 48 6f 77 20 64 6f | 65 73 20 44 72 61 67 67 |: How do|es Dragg|
|00000980| 69 6e 67 20 72 65 61 6c | 6c 79 20 77 6f 72 6b 3f |ing real|ly work?|
|00000990| 20 28 36 2f 37 2f 39 34 | 29 0d a5 20 43 48 41 4e | (6/7/94|).. CHAN|
|000009a0| 47 45 44 3a 20 4e 65 77 | 20 63 61 6c 6c 2e 2e 2e |GED: New| call...|
|000009b0| 20 44 69 72 74 79 42 6f | 78 20 28 36 2f 37 2f 39 | DirtyBo|x (6/7/9|
|000009c0| 34 29 0d a5 20 4e 45 57 | 3a 20 43 68 69 6c 64 72 |4).. NEW|: Childr|
|000009d0| 65 6e 20 62 69 67 67 65 | 72 20 74 68 61 6e 20 74 |en bigge|r than t|
|000009e0| 68 65 69 72 20 70 61 72 | 65 6e 74 73 3f 20 20 28 |heir par|ents? (|
|000009f0| 36 2f 39 2f 39 34 29 20 | 28 4f 62 73 6f 6c 65 74 |6/9/94) |(Obsolet|
|00000a00| 65 64 20 62 79 20 4e 65 | 77 74 6f 6e 20 0d 20 20 |ed by Ne|wton . |
|00000a10| 20 50 72 6f 67 72 61 6d | 6d 65 72 73 20 47 75 69 | Program|mers Gui|
|00000a20| 64 65 20 70 2e 32 2d 31 | 38 29 0d a5 20 4e 45 57 |de p.2-1|8).. NEW|
|00000a30| 3a 20 44 65 63 6c 61 72 | 69 6e 67 20 6d 75 6c 74 |: Declar|ing mult|
|00000a40| 69 70 6c 65 20 6c 65 76 | 65 6c 73 20 28 36 2f 39 |iple lev|els (6/9|
|00000a50| 2f 39 34 29 0d a5 20 4e | 45 57 3a 20 76 6a 53 69 |/94).. N|EW: vjSi|
|00000a60| 62 6c 69 6e 67 43 65 6e | 74 65 72 56 2f 76 6a 53 |blingCen|terV/vjS|
|00000a70| 69 62 6c 69 6e 67 43 65 | 6e 74 65 72 48 20 61 6e |iblingCe|nterH an|
|00000a80| 64 20 6c 61 72 67 65 72 | 20 73 69 62 6c 69 6e 67 |d larger| sibling|
|00000a90| 73 20 28 36 2f 39 2f 39 | 34 29 0d a5 20 4e 45 57 |s (6/9/9|4).. NEW|
|00000aa0| 3a 20 6b 65 79 48 69 67 | 68 6c 69 67 68 74 4b 65 |: keyHig|hlightKe|
|00000ab0| 79 73 20 66 6f 72 20 63 | 6c 4b 65 79 62 6f 61 72 |ys for c|lKeyboar|
|00000ac0| 64 56 69 65 77 73 20 28 | 36 2f 39 2f 39 34 29 0d |dViews (|6/9/94).|
|00000ad0| a5 20 43 48 41 4e 47 45 | 44 3a 20 76 69 65 77 20 |. CHANGE|D: view |
|00000ae0| 62 6f 72 64 65 72 73 20 | 61 6e 64 20 44 72 61 67 |borders |and Drag|
|00000af0| 67 69 6e 67 20 28 36 2f | 39 2f 39 34 29 0d a5 20 |ging (6/|9/94).. |
|00000b00| 4e 45 57 3a 20 43 6f 6e | 73 74 72 61 69 6e 74 73 |NEW: Con|straints|
|00000b10| 20 6f 6e 20 6b 65 79 62 | 6f 61 72 64 73 20 73 69 | on keyb|oards si|
|00000b20| 7a 69 6e 67 20 74 6f 20 | 74 68 65 20 76 69 65 77 |zing to |the view|
|00000b30| 20 28 36 2f 39 2f 39 34 | 29 0d a5 20 4e 45 57 3a | (6/9/94|).. NEW:|
|00000b40| 20 41 64 64 69 6e 67 20 | 65 64 69 74 61 62 6c 65 | Adding |editable|
|00000b50| 20 74 65 78 74 20 74 6f | 20 63 6c 45 64 69 74 56 | text to| clEditV|
|00000b60| 69 65 77 73 2e 20 28 36 | 2f 39 2f 39 34 29 0d a5 |iews. (6|/9/94)..|
|00000b70| 20 4e 45 57 3a 20 76 69 | 65 77 4c 69 6e 65 53 70 | NEW: vi|ewLineSp|
|00000b80| 61 63 69 6e 67 20 61 6e | 64 20 75 73 65 72 20 66 |acing an|d user f|
|00000b90| 6f 6e 74 20 28 36 2f 31 | 30 2f 39 34 29 0d a5 20 |ont (6/1|0/94).. |
|00000ba0| 4e 45 57 3a 20 48 6f 77 | 20 74 6f 20 64 6f 20 61 |NEW: How| to do a|
|00000bb0| 20 73 70 61 63 65 72 20 | 72 6f 77 20 69 6e 20 61 | spacer |row in a|
|00000bc0| 20 4b 65 79 62 6f 61 72 | 64 20 28 36 2f 31 33 2f | Keyboar|d (6/13/|
|00000bd0| 39 34 29 0d a5 20 4e 45 | 57 3a 20 76 69 65 77 43 |94).. NE|W: viewC|
|00000be0| 6c 69 63 6b 53 63 72 69 | 70 74 20 69 6e 68 65 72 |lickScri|pt inher|
|00000bf0| 69 74 61 6e 63 65 20 61 | 6e 64 20 75 73 65 72 20 |itance a|nd user |
|00000c00| 69 6e 70 75 74 20 28 36 | 2f 31 35 2f 39 34 29 0d |input (6|/15/94).|
|00000c10| a5 20 4e 45 57 3a 20 50 | 65 72 66 6f 72 6d 61 6e |. NEW: P|erforman|
|00000c20| 63 65 20 49 73 73 75 65 | 73 20 77 68 65 6e 20 44 |ce Issue|s when D|
|00000c30| 69 72 74 79 69 6e 67 20 | 56 69 65 77 73 20 28 36 |irtying |Views (6|
|00000c40| 2f 32 30 2f 39 34 29 0d | a5 20 4e 45 57 3a 20 50 |/20/94).|. NEW: P|
|00000c50| 65 72 66 6f 72 6d 61 6e | 63 65 20 49 73 73 75 65 |erforman|ce Issue|
|00000c60| 73 20 77 69 74 68 20 46 | 69 6c 6c 65 64 20 56 69 |s with F|illed Vi|
|00000c70| 65 77 73 20 28 36 2f 32 | 30 2f 39 34 29 0d a5 20 |ews (6/2|0/94).. |
|00000c80| 4e 45 57 3a 20 48 6f 77 | 20 74 6f 20 52 65 66 6c |NEW: How| to Refl|
|00000c90| 6f 77 28 29 20 76 69 65 | 77 73 20 28 36 2f 32 31 |ow() vie|ws (6/21|
|00000ca0| 2f 39 34 29 0d a5 20 4e | 45 57 3a 20 55 73 69 6e |/94).. N|EW: Usin|
|00000cb0| 67 20 66 75 6c 6c 20 6a | 75 73 74 69 66 69 63 61 |g full j|ustifica|
|00000cc0| 74 69 6f 6e 20 69 6e 20 | 70 72 69 6e 74 69 6e 67 |tion in |printing|
|00000cd0| 20 28 36 2f 32 31 2f 39 | 34 29 0d a5 20 4e 45 57 | (6/21/9|4).. NEW|
|00000ce0| 3a 20 48 6f 77 20 74 6f | 20 55 73 65 20 47 65 74 |: How to| Use Get|
|00000cf0| 49 74 65 6d 4d 61 72 6b | 20 61 6e 64 20 53 65 74 |ItemMark| and Set|
|00000d00| 49 74 65 6d 4d 61 72 6b | 20 28 36 2f 32 31 2f 39 |ItemMark| (6/21/9|
|00000d10| 34 29 0d a5 20 4e 45 57 | 3a 20 4f 72 64 65 72 20 |4).. NEW|: Order |
|00000d20| 6f 66 20 76 69 65 77 51 | 75 69 74 53 63 72 69 70 |of viewQ|uitScrip|
|00000d30| 74 20 65 78 65 63 75 74 | 69 6f 6e 20 28 36 2f 33 |t execut|ion (6/3|
|00000d40| 30 2f 39 34 29 0d a5 20 | 4e 45 57 3a 20 44 65 63 |0/94).. |NEW: Dec|
|00000d50| 6c 61 72 65 64 20 56 69 | 65 77 73 20 41 72 65 20 |lared Vi|ews Are |
|00000d60| 41 6c 77 61 79 73 20 69 | 6e 20 4d 65 6d 6f 72 79 |Always i|n Memory|
|00000d70| 20 28 36 2f 33 30 2f 39 | 34 29 0d a5 20 4e 45 57 | (6/30/9|4).. NEW|
|00000d80| 3a 20 63 6c 45 64 69 74 | 56 69 65 77 73 20 61 6e |: clEdit|Views an|
|00000d90| 64 20 74 79 70 69 6e 67 | 2f 50 6f 73 74 4b 65 79 |d typing|/PostKey|
|00000da0| 53 74 72 69 6e 67 20 28 | 37 2f 35 2f 39 34 29 0d |String (|7/5/94).|
|00000db0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000dc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000dd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 0d 56 |________|______.V|
|00000de0| 69 65 77 20 51 26 41 73 | 0d 09 5f 5f 5f 5f 5f 5f |iew Q&As|..______|
|00000df0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000e00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000e10| 5f 5f 5f 5f 5f 0d 53 69 | 7a 69 6e 67 20 61 6e 64 |_____.Si|zing and|
|00000e20| 20 50 6f 73 69 74 69 6f | 6e 69 6e 67 20 54 68 65 | Positio|ning The|
|00000e30| 20 42 61 73 65 20 41 70 | 70 6c 69 63 61 74 69 6f | Base Ap|plicatio|
|00000e40| 6e 20 56 69 65 77 20 28 | 39 2f 31 35 2f 39 33 29 |n View (|9/15/93)|
|00000e50| 0d 28 4f 62 73 6f 6c 65 | 74 65 64 20 62 79 20 31 |.(Obsole|ted by 1|
|00000e60| 2e 30 20 4e 65 77 74 6f | 6e 20 50 72 6f 67 72 61 |.0 Newto|n Progra|
|00000e70| 6d 6d 65 72 27 73 20 47 | 75 69 64 65 20 70 32 2d |mmer's G|uide p2-|
|00000e80| 31 38 29 0d 51 3a 20 09 | 48 6f 77 20 64 6f 20 49 |18).Q: .|How do I|
|00000e90| 20 6b 6e 6f 77 20 74 68 | 65 20 72 69 67 68 74 20 | know th|e right |
|00000ea0| 72 65 63 74 61 6e 67 6c | 65 20 73 69 7a 65 20 66 |rectangl|e size f|
|00000eb0| 6f 72 20 6d 79 20 62 61 | 73 65 20 61 70 70 6c 69 |or my ba|se appli|
|00000ec0| 63 61 74 69 6f 6e 20 76 | 69 65 77 3f 20 41 72 65 |cation v|iew? Are|
|00000ed0| 20 74 68 65 72 65 20 61 | 6e 79 20 67 6c 6f 62 61 | there a|ny globa|
|00000ee0| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 49 20 63 61 |l variab|les I ca|
|00000ef0| 6e 20 75 73 65 3f 0d 41 | 3a 20 09 59 6f 75 20 63 |n use?.A|: .You c|
|00000f00| 61 6e 20 75 73 65 20 69 | 6e 66 6f 72 6d 61 74 69 |an use i|nformati|
|00000f10| 6f 6e 20 72 65 74 75 72 | 6e 65 64 20 62 79 20 74 |on retur|ned by t|
|00000f20| 68 65 20 47 65 74 41 70 | 70 50 61 72 61 6d 73 20 |he GetAp|pParams |
|00000f30| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 61 75 74 6f |function| to auto|
|00000f40| 6d 61 74 69 63 61 6c 6c | 79 20 63 6f 6e 66 69 67 |maticall|y config|
|00000f50| 75 72 65 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |ure the |size of |
|00000f60| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00000f70| 27 73 20 62 61 73 65 20 | 76 69 65 77 20 66 6f 72 |'s base |view for|
|00000f80| 20 64 69 66 66 65 72 65 | 6e 74 20 4e 65 77 74 6f | differe|nt Newto|
|00000f90| 6e 20 73 63 72 65 65 6e | 20 73 69 7a 65 73 2e 20 |n screen| sizes. |
|00000fa0| 20 47 65 74 41 70 70 50 | 61 72 61 6d 73 20 72 65 | GetAppP|arams re|
|00000fb0| 74 75 72 6e 73 20 61 20 | 66 72 61 6d 65 20 63 6f |turns a |frame co|
|00000fc0| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 63 6f 6f |ntaining| the coo|
|00000fd0| 72 64 69 6e 61 74 65 73 | 20 6f 66 20 74 68 65 20 |rdinates| of the |
|00000fe0| 64 72 61 77 61 62 6c 65 | 20 61 72 65 61 20 6f 66 |drawable| area of|
|00000ff0| 20 74 68 65 20 4e 65 77 | 74 6f 6e 20 73 63 72 65 | the New|ton scre|
|00001000| 65 6e 2e 20 54 68 65 20 | 72 65 74 75 72 6e 20 72 |en. The |return r|
|00001010| 65 73 75 6c 74 20 66 72 | 6f 6d 20 74 68 69 73 20 |esult fr|om this |
|00001020| 66 75 6e 63 74 69 6f 6e | 20 74 79 70 69 63 61 6c |function| typical|
|00001030| 6c 79 20 6c 6f 6f 6b 73 | 20 6c 69 6b 65 20 74 68 |ly looks| like th|
|00001040| 65 20 63 6f 64 65 20 66 | 72 61 67 6d 65 6e 74 20 |e code f|ragment |
|00001050| 62 65 6c 6f 77 2e 20 0d | 09 0d 09 09 7b 61 70 70 |below. .|....{app|
|00001060| 41 72 65 61 54 6f 70 3a | 20 30 2c 0d 09 09 20 61 |AreaTop:| 0,... a|
|00001070| 70 70 41 72 65 61 4c 65 | 66 74 3a 20 30 2c 0d 09 |ppAreaLe|ft: 0,..|
|00001080| 09 20 61 70 70 41 72 65 | 61 57 69 64 74 68 3a 20 |. appAre|aWidth: |
|00001090| 32 34 30 2c 0d 09 09 20 | 61 70 70 41 72 65 61 48 |240,... |appAreaH|
|000010a0| 65 69 67 68 74 3a 20 33 | 33 36 2c 0d 09 09 20 62 |eight: 3|36,... b|
|000010b0| 75 74 74 6f 6e 42 61 72 | 50 6f 73 69 74 69 6f 6e |uttonBar|Position|
|000010c0| 3a 20 62 6f 74 74 6f 6d | 7d 0d 09 59 6f 75 20 63 |: bottom|}..You c|
|000010d0| 61 6e 20 75 73 65 20 74 | 68 65 20 61 70 70 41 72 |an use t|he appAr|
|000010e0| 65 61 58 58 58 20 63 6f | 6f 72 64 69 6e 61 74 65 |eaXXX co|ordinate|
|000010f0| 73 20 74 6f 20 73 69 7a | 65 20 79 6f 75 72 20 62 |s to siz|e your b|
|00001100| 61 73 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ase appl|ication |
|00001110| 76 69 65 77 20 72 65 6c | 61 74 69 76 65 20 74 6f |view rel|ative to|
|00001120| 20 74 68 65 20 73 69 7a | 65 20 6f 66 20 74 68 65 | the siz|e of the|
|00001130| 20 73 63 72 65 65 6e 20 | 6f 66 20 74 68 65 20 64 | screen |of the d|
|00001140| 65 76 69 63 65 20 6f 6e | 20 77 68 69 63 68 20 79 |evice on| which y|
|00001150| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00001160| 69 73 20 69 6e 73 74 61 | 6c 6c 65 64 2c 20 61 73 |is insta|lled, as|
|00001170| 20 69 6e 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | in the |followin|
|00001180| 67 20 63 6f 64 65 20 66 | 72 61 67 6d 65 6e 74 2e |g code f|ragment.|
|00001190| 20 54 68 69 73 20 63 6f | 64 65 20 77 6f 75 6c 64 | This co|de would|
|000011a0| 20 6e 6f 72 6d 61 6c 6c | 79 20 62 65 20 70 6c 61 | normall|y be pla|
|000011b0| 63 65 64 20 69 6e 20 74 | 68 65 20 20 62 61 73 65 |ced in t|he base|
|000011c0| 20 76 69 65 77 27 73 20 | 76 69 65 77 53 65 74 75 | view's |viewSetu|
|000011d0| 70 46 6f 72 6d 53 63 72 | 69 70 74 20 73 63 72 69 |pFormScr|ipt scri|
|000011e0| 70 74 2e 0d 09 2f 2f 20 | 69 6e 20 79 6f 75 72 20 |pt...// |in your |
|000011f0| 50 72 6f 6a 65 63 74 20 | 44 61 74 61 0d 09 63 6f |Project |Data..co|
|00001200| 6e 73 74 61 6e 74 20 6b | 4d 61 78 41 70 70 57 69 |nstant k|MaxAppWi|
|00001210| 64 74 68 20 3a 3d 20 32 | 34 30 20 3b 20 2f 2f 20 |dth := 2|40 ; // |
|00001220| 4d 50 31 30 30 20 73 69 | 7a 65 0d 09 63 6f 6e 73 |MP100 si|ze..cons|
|00001230| 74 61 6e 74 20 6b 4d 61 | 78 41 70 70 48 65 69 67 |tant kMa|xAppHeig|
|00001240| 68 74 20 3a 3d 20 33 33 | 36 20 3b 20 2f 2f 20 4d |ht := 33|6 ; // M|
|00001250| 50 31 30 30 20 73 69 7a | 65 0d 09 2f 2f 20 69 6e |P100 siz|e..// in|
|00001260| 20 79 6f 75 72 20 76 69 | 65 77 53 65 74 75 70 46 | your vi|ewSetupF|
|00001270| 6f 72 6d 53 63 72 69 70 | 74 0d 09 6c 6f 63 61 6c |ormScrip|t..local|
|00001280| 20 61 61 20 3a 3d 20 47 | 65 74 41 70 70 50 61 72 | aa := G|etAppPar|
|00001290| 61 6d 73 28 29 3b 0d 09 | 73 65 6c 66 2e 76 69 65 |ams();..|self.vie|
|000012a0| 77 42 6f 75 6e 64 73 20 | 3a 3d 20 0d 09 09 52 65 |wBounds |:= ...Re|
|000012b0| 6c 42 6f 75 6e 64 73 28 | 61 61 2e 61 70 70 41 72 |lBounds(|aa.appAr|
|000012c0| 65 61 54 6f 70 2c 61 61 | 2e 61 70 70 41 72 65 61 |eaTop,aa|.appArea|
|000012d0| 4c 65 66 74 2c 0d 09 09 | 4d 49 4e 28 61 61 2e 61 |Left,...|MIN(aa.a|
|000012e0| 70 70 41 72 65 61 57 69 | 64 74 68 2c 20 6b 4d 61 |ppAreaWi|dth, kMa|
|000012f0| 78 41 70 70 57 69 64 74 | 68 29 0d 09 09 4d 49 4e |xAppWidt|h)...MIN|
|00001300| 28 61 61 2e 61 70 70 41 | 72 65 61 48 65 69 67 68 |(aa.appA|reaHeigh|
|00001310| 74 2c 20 6b 4d 61 78 41 | 70 70 48 65 69 67 68 74 |t, kMaxA|ppHeight|
|00001320| 29 29 0d 09 4f 6e 63 65 | 20 79 6f 75 20 68 61 76 |))..Once| you hav|
|00001330| 65 20 73 69 7a 65 64 20 | 79 6f 75 72 20 61 70 70 |e sized |your app|
|00001340| 6c 69 63 61 74 69 6f 6e | 27 73 20 62 61 73 65 20 |lication|'s base |
|00001350| 76 69 65 77 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |view acc|ording t|
|00001360| 6f 20 74 68 65 20 73 63 | 72 65 65 6e 20 6f 66 20 |o the sc|reen of |
|00001370| 74 68 65 20 4e 65 77 74 | 6f 6e 20 64 65 76 69 63 |the Newt|on devic|
|00001380| 65 20 6f 6e 20 77 68 69 | 63 68 20 69 74 20 69 73 |e on whi|ch it is|
|00001390| 20 69 6e 73 74 61 6c 6c | 65 64 2c 20 79 6f 75 20 | install|ed, you |
|000013a0| 63 61 6e 20 75 73 65 20 | 74 68 65 20 62 75 74 74 |can use |the butt|
|000013b0| 6f 6e 42 61 72 50 6f 73 | 69 74 69 6f 6e 20 72 65 |onBarPos|ition re|
|000013c0| 74 75 72 6e 65 64 20 62 | 79 20 47 65 74 41 70 70 |turned b|y GetApp|
|000013d0| 50 61 72 61 6d 73 20 74 | 6f 20 70 6f 73 69 74 69 |Params t|o positi|
|000013e0| 6f 6e 20 79 6f 75 72 20 | 62 61 73 65 20 76 69 65 |on your |base vie|
|000013f0| 77 20 72 65 6c 61 74 69 | 76 65 20 74 6f 20 74 68 |w relati|ve to th|
|00001400| 65 20 62 75 74 74 6f 6e | 20 62 61 72 2e 20 20 49 |e button| bar. I|
|00001410| 74 20 69 73 20 63 6f 6d | 6d 6f 6e 20 66 6f 72 20 |t is com|mon for |
|00001420| 74 68 65 20 6d 61 69 6e | 20 61 70 70 6c 69 63 61 |the main| applica|
|00001430| 74 69 6f 6e 20 76 69 65 | 77 20 74 6f 20 62 65 20 |tion vie|w to be |
|00001440| 70 6f 73 69 74 69 6f 6e | 65 64 20 66 6c 75 73 68 |position|ed flush|
|00001450| 20 77 69 74 68 20 74 68 | 65 20 62 75 74 74 6f 6e | with th|e button|
|00001460| 20 62 61 72 2e 20 54 68 | 65 20 47 65 74 41 70 70 | bar. Th|e GetApp|
|00001470| 50 61 72 61 6d 73 20 66 | 75 6e 63 74 69 6f 6e 20 |Params f|unction |
|00001480| 72 65 74 75 72 6e 73 20 | 74 68 65 20 76 61 6c 75 |returns |the valu|
|00001490| 65 20 6f 66 20 62 75 74 | 74 6f 6e 42 61 72 50 6f |e of but|tonBarPo|
|000014a0| 73 69 74 69 6f 6e 20 61 | 73 20 6f 6e 65 20 6f 66 |sition a|s one of|
|000014b0| 20 74 68 65 20 73 79 6d | 62 6f 6c 73 20 27 74 6f | the sym|bols 'to|
|000014c0| 70 2c 20 27 6c 65 66 74 | 2c 20 27 62 6f 74 74 6f |p, 'left|, 'botto|
|000014d0| 6d 2c 20 6f 72 20 27 72 | 69 67 68 74 2e 20 0d 09 |m, or 'r|ight. ..|
|000014e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000014f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001500| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 49 72 69 73 |________|___.Iris|
|00001510| 4f 70 65 6e 45 66 66 65 | 63 74 20 76 65 72 73 75 |OpenEffe|ct versu|
|00001520| 73 20 5a 6f 6f 6d 4f 70 | 65 6e 45 66 66 65 63 74 |s ZoomOp|enEffect|
|00001530| 20 28 39 2f 31 35 2f 39 | 33 29 0d 51 3a 20 09 49 | (9/15/9|3).Q: .I|
|00001540| 27 76 65 20 74 72 69 65 | 64 20 75 73 69 6e 67 20 |'ve trie|d using |
|00001550| 74 68 65 20 49 72 69 73 | 4f 70 65 6e 45 66 66 65 |the Iris|OpenEffe|
|00001560| 63 74 2c 20 62 75 74 20 | 69 74 20 6c 6f 6f 6b 73 |ct, but |it looks|
|00001570| 20 65 78 61 63 74 6c 79 | 20 6c 69 6b 65 20 74 68 | exactly| like th|
|00001580| 65 20 5a 6f 6f 6d 4f 70 | 65 6e 45 66 66 65 63 74 |e ZoomOp|enEffect|
|00001590| 2e 20 57 68 79 3f 0d 20 | 41 3a 09 54 68 65 20 74 |. Why?. |A:.The t|
|000015a0| 77 6f 20 65 66 66 65 63 | 74 73 20 72 65 61 6c 6c |wo effec|ts reall|
|000015b0| 79 20 61 72 65 20 71 75 | 69 74 65 20 64 69 66 66 |y are qu|ite diff|
|000015c0| 65 72 65 6e 74 2c 20 61 | 6c 74 68 6f 75 67 68 20 |erent, a|lthough |
|000015d0| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 20 69 |the diff|erence i|
|000015e0| 73 20 73 75 62 74 6c 65 | 2e 0d 09 49 72 69 73 4f |s subtle|...IrisO|
|000015f0| 70 65 6e 45 66 66 65 63 | 74 20 63 68 61 6e 67 65 |penEffec|t change|
|00001600| 73 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 61 6e |s the si|ze of an|
|00001610| 20 69 6e 76 69 73 69 62 | 6c 65 20 22 61 70 65 72 | invisib|le "aper|
|00001620| 74 75 72 65 22 20 63 6f | 76 65 72 69 6e 67 20 74 |ture" co|vering t|
|00001630| 68 65 20 76 69 65 77 2c | 20 72 65 76 65 61 6c 69 |he view,| reveali|
|00001640| 6e 67 20 61 6e 20 65 76 | 65 72 2d 69 6e 63 72 65 |ng an ev|er-incre|
|00001650| 61 73 69 6e 67 20 70 6f | 72 74 69 6f 6e 20 6f 66 |asing po|rtion of|
|00001660| 20 74 68 65 20 66 75 6c | 6c 2d 73 69 7a 65 20 76 | the ful|l-size v|
|00001670| 69 65 77 20 61 73 20 74 | 68 65 20 61 70 65 72 74 |iew as t|he apert|
|00001680| 75 72 65 20 6f 70 65 6e | 73 2e 20 5a 6f 6f 6d 4f |ure open|s. ZoomO|
|00001690| 70 65 6e 45 66 66 65 63 | 74 2c 20 6f 6e 20 74 68 |penEffec|t, on th|
|000016a0| 65 20 6f 74 68 65 72 20 | 68 61 6e 64 2c 20 20 61 |e other |hand, a|
|000016b0| 63 74 75 61 6c 6c 79 20 | 22 67 72 6f 77 73 22 20 |ctually |"grows" |
|000016c0| 74 68 65 20 69 6d 61 67 | 65 20 6f 66 20 74 68 65 |the imag|e of the|
|000016d0| 20 76 69 65 77 20 66 72 | 6f 6d 20 61 20 70 6f 69 | view fr|om a poi|
|000016e0| 6e 74 20 69 6e 20 74 68 | 65 20 63 65 6e 74 65 72 |nt in th|e center|
|000016f0| 20 75 6e 74 69 6c 20 69 | 74 20 66 69 6c 6c 73 20 | until i|t fills |
|00001700| 74 68 65 20 73 63 72 65 | 65 6e 3b 20 74 68 61 74 |the scre|en; that|
|00001710| 20 69 73 2c 20 74 68 65 | 20 65 6e 74 69 72 65 20 | is, the| entire |
|00001720| 76 69 65 77 20 61 70 70 | 65 61 72 73 20 74 6f 20 |view app|ears to |
|00001730| 65 78 70 61 6e 64 20 66 | 72 6f 6d 20 61 20 70 6f |expand f|rom a po|
|00001740| 69 6e 74 20 69 6e 20 74 | 68 65 20 63 65 6e 74 65 |int in t|he cente|
|00001750| 72 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2e |r of the| screen.|
|00001760| 20 20 0d 09 49 72 69 73 | 4f 70 65 6e 45 66 66 65 | ..Iris|OpenEffe|
|00001770| 63 74 20 61 6c 73 6f 20 | 68 61 73 20 74 68 65 20 |ct also |has the |
|00001780| 72 65 76 65 61 6c 4c 69 | 6e 65 20 62 69 74 20 73 |revealLi|ne bit s|
|00001790| 65 74 2c 20 63 61 75 73 | 69 6e 67 20 61 20 62 6f |et, caus|ing a bo|
|000017a0| 72 64 65 72 20 74 6f 20 | 73 75 72 72 6f 75 6e 64 |rder to |surround|
|000017b0| 20 74 68 65 20 61 6e 69 | 6d 61 74 69 6f 6e 2e 20 | the ani|mation. |
|000017c0| 54 68 65 20 72 65 76 65 | 61 6c 4c 69 6e 65 20 62 |The reve|alLine b|
|000017d0| 69 74 20 69 73 20 75 73 | 75 61 6c 6c 79 20 6e 6f |it is us|ually no|
|000017e0| 74 20 73 65 74 20 77 68 | 65 6e 20 75 73 69 6e 67 |t set wh|en using|
|000017f0| 20 5a 6f 6f 6d 4f 70 65 | 6e 45 66 66 65 63 74 20 | ZoomOpe|nEffect |
|00001800| 62 65 63 61 75 73 65 20 | 74 68 65 20 6f 75 74 65 |because |the oute|
|00001810| 72 20 65 64 67 65 20 6f | 66 20 74 68 65 20 76 69 |r edge o|f the vi|
|00001820| 65 77 20 69 73 20 61 6c | 77 61 79 73 20 6f 6e 20 |ew is al|ways on |
|00001830| 74 68 65 20 65 64 67 65 | 20 6f 66 20 74 68 65 20 |the edge| of the |
|00001840| 61 6e 69 6d 61 74 69 6f | 6e 2e 20 53 65 74 20 74 |animatio|n. Set t|
|00001850| 68 69 73 20 62 69 74 20 | 6f 6e 6c 79 20 77 68 65 |his bit |only whe|
|00001860| 6e 20 74 68 65 20 76 69 | 65 77 20 62 65 69 6e 67 |n the vi|ew being|
|00001870| 20 7a 6f 6f 6d 65 64 20 | 64 6f 65 73 6e 27 74 20 | zoomed |doesn't |
|00001880| 68 61 76 65 20 61 20 62 | 6f 72 64 65 72 2e 0d 09 |have a b|order...|
|00001890| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000018a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000018b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 42 61 73 65 |________|___.Base|
|000018c0| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 56 69 65 | Applica|tion Vie|
|000018d0| 77 20 53 65 74 75 70 20 | 28 39 2f 31 35 2f 39 33 |w Setup |(9/15/93|
|000018e0| 29 20 28 6f 62 73 6f 6c | 65 74 65 64 20 62 79 20 |) (obsol|eted by |
|000018f0| 31 2e 30 20 4e 65 77 74 | 6f 6e 20 50 72 6f 67 72 |1.0 Newt|on Progr|
|00001900| 61 6d 6d 65 72 27 73 20 | 47 75 69 64 65 20 70 33 |ammer's |Guide p3|
|00001910| 2d 35 29 0d 51 3a 09 57 | 68 69 63 68 20 73 6c 6f |-5).Q:.W|hich slo|
|00001920| 74 73 20 61 6e 64 20 73 | 63 72 69 70 74 73 20 6d |ts and s|cripts m|
|00001930| 75 73 74 20 62 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |ust be i|mplement|
|00001940| 65 64 20 69 6e 20 61 20 | 63 75 73 74 6f 6d 20 70 |ed in a |custom p|
|00001950| 72 6f 74 6f 74 79 70 65 | 20 61 70 70 6c 69 63 61 |rototype| applica|
|00001960| 74 69 6f 6e 20 74 65 6d | 70 6c 61 74 65 20 69 66 |tion tem|plate if|
|00001970| 20 74 65 6d 70 6c 61 74 | 65 73 20 63 61 70 61 62 | templat|es capab|
|00001980| 6c 65 20 6f 66 20 63 6f | 6e 74 61 69 6e 69 6e 67 |le of co|ntaining|
|00001990| 20 73 69 6d 70 6c 65 20 | 63 68 69 6c 64 20 74 65 | simple |child te|
|000019a0| 6d 70 6c 61 74 65 73 20 | 61 72 65 20 74 6f 20 62 |mplates |are to b|
|000019b0| 65 20 64 65 72 69 76 65 | 64 20 66 72 6f 6d 20 69 |e derive|d from i|
|000019c0| 74 3f 0d 41 3a 20 09 54 | 68 65 72 65 20 61 72 65 |t?.A: .T|here are|
|000019d0| 20 72 65 61 6c 6c 79 20 | 6f 6e 6c 79 20 74 77 6f | really |only two|
|000019e0| 20 72 65 71 75 69 72 65 | 6d 65 6e 74 73 20 66 6f | require|ments fo|
|000019f0| 72 20 61 20 62 61 73 65 | 20 61 70 70 6c 69 63 61 |r a base| applica|
|00001a00| 74 69 6f 6e 20 76 69 65 | 77 2e 0d 09 a5 20 54 68 |tion vie|w.... Th|
|00001a10| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 62 6f |e Applic|ation bo|
|00001a20| 78 20 6d 75 73 74 20 62 | 65 20 65 6e 61 62 6c 65 |x must b|e enable|
|00001a30| 64 20 28 63 68 65 63 6b | 65 64 29 20 69 6e 20 76 |d (check|ed) in v|
|00001a40| 69 65 77 46 6c 61 67 73 | 2e 54 68 69 73 20 64 65 |iewFlags|.This de|
|00001a50| 74 65 72 6d 69 6e 65 73 | 20 77 68 65 72 65 20 74 |termines| where t|
|00001a60| 68 65 20 73 79 73 74 65 | 6d 20 73 65 6e 64 73 20 |he syste|m sends |
|00001a70| 6d 65 73 73 61 67 65 73 | 20 73 75 63 68 20 61 73 |messages| such as|
|00001a80| 20 74 68 6f 73 65 20 75 | 73 65 64 20 66 6f 72 20 | those u|sed for |
|00001a90| 73 63 72 6f 6c 6c 69 6e | 67 2e 0d 09 a5 20 54 68 |scrollin|g.... Th|
|00001aa0| 65 20 76 69 65 77 20 6d | 75 73 74 20 73 74 6f 72 |e view m|ust stor|
|00001ab0| 65 20 74 68 65 20 73 79 | 6d 62 6f 6c 20 27 62 61 |e the sy|mbol 'ba|
|00001ac0| 73 65 20 69 6e 20 69 74 | 73 20 64 65 63 6c 61 72 |se in it|s declar|
|00001ad0| 65 53 65 6c 66 20 73 6c | 6f 74 2e 20 0d 09 64 65 |eSelf sl|ot. ..de|
|00001ae0| 63 6c 61 72 65 53 65 6c | 66 20 3a 3d 20 27 62 61 |clareSel|f := 'ba|
|00001af0| 73 65 3b 0d 09 09 0d 09 | 54 68 65 20 43 6c 6f 73 |se;.....|The Clos|
|00001b00| 65 2f 43 61 6e 63 65 6c | 42 6f 78 20 73 65 61 72 |e/Cancel|Box sear|
|00001b10| 63 68 65 73 20 74 68 65 | 20 76 69 65 77 20 68 69 |ches the| view hi|
|00001b20| 65 72 61 72 63 68 79 20 | 74 6f 20 66 69 6e 64 20 |erarchy |to find |
|00001b30| 73 6f 6d 65 74 68 69 6e | 67 20 68 61 76 69 6e 67 |somethin|g having|
|00001b40| 20 61 20 64 65 63 6c 61 | 72 65 53 65 6c 66 20 76 | a decla|reSelf v|
|00001b50| 61 6c 75 65 20 6f 66 20 | 27 62 61 73 65 20 61 6e |alue of |'base an|
|00001b60| 64 20 63 6c 6f 73 65 73 | 20 69 74 2e 0d 09 59 6f |d closes| it...Yo|
|00001b70| 75 20 6e 65 65 64 20 6e | 6f 74 20 62 65 20 63 6f |u need n|ot be co|
|00001b80| 6e 63 65 72 6e 65 64 20 | 77 69 74 68 20 74 68 65 |ncerned |with the|
|00001b90| 20 5f 70 72 6f 74 6f 20 | 6f 72 20 5f 70 61 72 65 | _proto |or _pare|
|00001ba0| 6e 74 20 73 6c 6f 74 73 | 2e 20 54 68 65 20 5f 70 |nt slots|. The _p|
|00001bb0| 72 6f 74 6f 20 73 6c 6f | 74 20 64 65 74 65 72 6d |roto slo|t determ|
|00001bc0| 69 6e 65 73 20 74 68 65 | 20 73 79 73 74 65 6d 20 |ines the| system |
|00001bd0| 70 72 6f 74 6f 74 79 70 | 65 20 28 73 75 63 68 20 |prototyp|e (such |
|00001be0| 61 73 20 70 72 6f 74 6f | 41 70 70 6c 69 63 61 74 |as proto|Applicat|
|00001bf0| 69 6f 6e 2c 20 70 72 6f | 74 6f 43 6c 6f 73 65 42 |ion, pro|toCloseB|
|00001c00| 6f 78 2c 20 61 6e 64 20 | 73 6f 20 6f 6e 29 20 75 |ox, and |so on) u|
|00001c10| 73 65 64 20 62 79 20 74 | 68 65 20 76 69 65 77 2c |sed by t|he view,|
|00001c20| 20 77 68 69 63 68 20 64 | 65 74 65 72 6d 69 6e 65 | which d|etermine|
|00001c30| 73 20 69 74 73 20 62 65 | 68 61 76 69 6f 72 20 61 |s its be|havior a|
|00001c40| 6e 64 20 61 70 70 65 61 | 72 61 6e 63 65 2e 20 42 |nd appea|rance. B|
|00001c50| 65 63 61 75 73 65 20 79 | 6f 75 20 61 72 65 20 63 |ecause y|ou are c|
|00001c60| 72 65 61 74 69 6e 67 20 | 79 6f 75 72 20 6f 77 6e |reating |your own|
|00001c70| 20 74 65 6d 70 6c 61 74 | 65 20 2c 20 79 6f 75 20 | templat|e , you |
|00001c80| 64 6f 20 6e 6f 74 20 6e | 65 65 64 20 74 68 69 73 |do not n|eed this|
|00001c90| 20 73 6c 6f 74 2e 0d 09 | 54 68 65 20 20 5f 70 61 | slot...|The _pa|
|00001ca0| 72 65 6e 74 20 73 6c 6f | 74 20 61 66 66 65 63 74 |rent slo|t affect|
|00001cb0| 73 20 74 65 6d 70 6c 61 | 74 65 20 65 6e 63 6c 6f |s templa|te enclo|
|00001cc0| 73 75 72 65 2e 20 42 65 | 63 61 75 73 65 20 74 68 |sure. Be|cause th|
|00001cd0| 65 20 74 65 6d 70 6c 61 | 74 65 20 20 79 6f 75 20 |e templa|te you |
|00001ce0| 61 72 65 20 63 72 65 61 | 74 69 6e 67 20 69 73 20 |are crea|ting is |
|00001cf0| 61 20 62 61 73 65 20 6c | 65 76 65 6c 20 74 65 6d |a base l|evel tem|
|00001d00| 70 6c 61 74 65 2c 20 69 | 74 20 69 73 20 61 74 74 |plate, i|t is att|
|00001d10| 61 63 68 65 64 20 74 6f | 20 74 68 65 20 72 6f 6f |ached to| the roo|
|00001d20| 74 20 76 69 65 77 3b 20 | 68 6f 77 65 76 65 72 2c |t view; |however,|
|00001d30| 20 79 6f 75 20 6d 75 73 | 74 20 6e 6f 74 20 73 65 | you mus|t not se|
|00001d40| 74 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |t the va|lue of t|
|00001d50| 68 65 20 5f 70 61 72 65 | 6e 74 20 73 6c 6f 74 20 |he _pare|nt slot |
|00001d60| 64 69 72 65 63 74 6c 79 | 2e 20 54 68 65 20 4e 65 |directly|. The Ne|
|00001d70| 77 74 6f 6e 20 64 65 76 | 65 6c 6f 70 6d 65 6e 74 |wton dev|elopment|
|00001d80| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 64 6f 65 | environ|ment doe|
|00001d90| 73 20 61 6c 6c 20 74 68 | 65 20 72 65 6c 65 76 61 |s all th|e releva|
|00001da0| 6e 74 20 73 65 74 75 70 | 20 66 6f 72 20 79 6f 75 |nt setup| for you|
|00001db0| 2e 0d 09 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..._____|________|
|00001dc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001dd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 0d 74 |________|______.t|
|00001de0| 61 62 53 65 74 75 70 20 | 46 75 6e 63 74 69 6f 6e |abSetup |Function|
|00001df0| 73 20 61 6e 64 20 43 6f | 6e 74 65 78 74 20 49 73 |s and Co|ntext Is|
|00001e00| 73 75 65 73 20 28 39 2f | 31 35 2f 39 33 29 0d 51 |sues (9/|15/93).Q|
|00001e10| 3a 09 54 68 65 20 74 61 | 62 53 65 74 75 70 20 66 |:.The ta|bSetup f|
|00001e20| 75 6e 63 74 69 6f 6e 20 | 74 68 61 74 20 69 73 20 |unction |that is |
|00001e30| 70 61 73 73 65 64 20 74 | 6f 20 4c 61 79 6f 75 74 |passed t|o Layout|
|00001e40| 54 61 62 6c 65 20 64 6f | 65 73 20 6e 6f 74 20 73 |Table do|es not s|
|00001e50| 65 65 6d 20 74 6f 20 68 | 61 76 65 20 61 6e 79 20 |eem to h|ave any |
|00001e60| 63 6f 6e 74 65 78 74 20 | 77 68 65 6e 20 69 74 27 |context |when it'|
|00001e70| 73 20 63 61 6c 6c 65 64 | 2e 20 49 6e 20 6d 79 20 |s called|. In my |
|00001e80| 63 61 73 65 2c 20 49 20 | 64 69 73 63 6f 76 65 72 |case, I |discover|
|00001e90| 65 64 20 74 68 61 74 20 | 61 20 76 61 72 69 61 62 |ed that |a variab|
|00001ea0| 6c 65 20 49 20 68 61 64 | 20 64 65 66 69 6e 65 64 |le I had| defined|
|00001eb0| 20 67 6c 6f 62 61 6c 6c | 79 d1 61 20 73 6c 6f 74 | globall|y.a slot|
|00001ec0| 20 69 6e 20 6d 79 20 62 | 61 73 65 20 76 69 65 77 | in my b|ase view|
|00001ed0| d1 77 61 73 6e 27 74 20 | 62 65 69 6e 67 20 66 6f |.wasn't |being fo|
|00001ee0| 75 6e 64 2e 20 57 68 61 | 74 27 73 20 74 68 65 20 |und. Wha|t's the |
|00001ef0| 64 65 61 6c 3f 0d 41 3a | 09 54 68 69 73 20 69 73 |deal?.A:|.This is|
|00001f00| 20 69 6e 64 65 65 64 20 | 74 68 65 20 63 61 73 65 | indeed |the case|
|00001f10| 20 77 69 74 68 20 74 68 | 65 20 74 61 62 53 65 74 | with th|e tabSet|
|00001f20| 75 70 20 66 75 6e 63 74 | 69 6f 6e 2e 20 59 6f 75 |up funct|ion. You|
|00001f30| 20 68 61 76 65 20 74 6f | 20 70 61 73 73 20 74 68 | have to| pass th|
|00001f40| 65 20 63 6f 6e 74 65 78 | 74 20 77 69 74 68 20 74 |e contex|t with t|
|00001f50| 68 69 73 20 63 61 6c 6c | 2c 20 61 73 20 69 6e 20 |his call|, as in |
|00001f60| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 78 |the foll|owing ex|
|00001f70| 61 6d 70 6c 65 2e 0d 09 | 74 61 62 53 65 74 75 70 |ample...|tabSetup|
|00001f80| 3a 20 66 75 6e 63 28 70 | 72 6f 74 6f 74 65 6d 70 |: func(p|rototemp|
|00001f90| 6c 61 74 65 2c 20 73 6c | 6f 74 32 2c 20 6f 74 68 |late, sl|ot2, oth|
|00001fa0| 65 72 53 74 75 66 66 29 | 20 0d 09 62 65 67 69 6e |erStuff)| ..begin|
|00001fb0| 0d 09 09 2f 2f 20 2e 2e | 2e 0d 09 65 6e 64 2c 0d |...// ..|...end,.|
|00001fc0| 09 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |._______|________|
|00001fd0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001fe0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 0d 4c 69 67 |________|____.Lig|
|00001ff0| 68 74 77 65 69 67 68 74 | 20 63 6c 50 61 72 61 67 |htweight| clParag|
|00002000| 72 61 70 68 56 69 65 77 | 73 20 28 39 2f 31 35 2f |raphView|s (9/15/|
|00002010| 39 33 29 20 28 4f 62 73 | 6f 6c 65 74 65 2c 20 44 |93) (Obs|olete, D|
|00002020| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 4e 50 47 |ocumente|d in NPG|
|00002030| 20 31 2e 30 20 46 69 6e | 61 6c 20 34 2d 31 35 29 | 1.0 Fin|al 4-15)|
|00002040| 2e 0d 57 68 65 6e 20 79 | 6f 75 20 63 72 65 61 74 |..When y|ou creat|
|00002050| 65 20 61 20 63 6c 50 61 | 72 61 67 72 61 70 68 56 |e a clPa|ragraphV|
|00002060| 69 65 77 20 68 61 76 69 | 6e 67 20 61 20 70 61 72 |iew havi|ng a par|
|00002070| 74 69 63 75 6c 61 72 20 | 73 65 74 20 6f 66 20 63 |ticular |set of c|
|00002080| 68 61 72 61 63 74 65 72 | 69 73 74 69 63 73 2c 74 |haracter|istics,t|
|00002090| 68 65 20 73 79 73 74 65 | 6d 20 61 75 74 6f 6d 61 |he syste|m automa|
|000020a0| 74 69 63 61 6c 6c 79 20 | 6d 61 6b 65 73 20 61 20 |tically |makes a |
|000020b0| 6c 69 67 68 74 77 65 69 | 67 68 74 20 63 6c 50 61 |lightwei|ght clPa|
|000020c0| 72 61 67 72 61 70 68 56 | 69 65 77 20 66 6f 72 20 |ragraphV|iew for |
|000020d0| 79 6f 75 2e 20 20 54 68 | 69 73 20 76 69 65 77 20 |you. Th|is view |
|000020e0| 68 61 73 20 6c 65 73 73 | 20 6f 76 65 72 68 65 61 |has less| overhea|
|000020f0| 64 20 61 6e 64 20 69 73 | 20 66 61 73 74 65 72 20 |d and is| faster |
|00002100| 74 68 61 6e 20 61 20 66 | 75 6c 6c 2d 62 6c 6f 77 |than a f|ull-blow|
|00002110| 6e 20 63 6c 50 61 72 61 | 67 72 61 70 68 56 69 65 |n clPara|graphVie|
|00002120| 77 2e 20 20 54 6f 20 63 | 72 65 61 74 65 20 73 75 |w. To c|reate su|
|00002130| 63 68 20 61 20 76 69 65 | 77 2c 20 79 6f 75 72 20 |ch a vie|w, your |
|00002140| 63 6c 50 61 72 61 67 72 | 61 70 68 20 76 69 65 77 |clParagr|aph view|
|00002150| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 74 68 65 | should |have the|
|00002160| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 68 61 72 61 | followi|ng chara|
|00002170| 63 74 65 72 69 73 74 69 | 63 73 3a 0d a5 20 54 68 |cteristi|cs:.. Th|
|00002180| 65 20 76 52 65 61 64 4f | 6e 6c 79 20 66 6c 61 67 |e vReadO|nly flag|
|00002190| 20 69 73 20 73 65 74 2e | 0d a5 20 54 68 65 20 76 | is set.|.. The v|
|000021a0| 47 65 73 74 75 72 65 73 | 41 6c 6c 6f 77 65 64 20 |Gestures|Allowed |
|000021b0| 61 6e 64 20 76 43 61 6c | 63 75 6c 61 74 65 42 6f |and vCal|culateBo|
|000021c0| 75 6e 64 73 20 66 6c 61 | 67 73 20 61 72 65 20 6e |unds fla|gs are n|
|000021d0| 6f 74 20 73 65 74 2e 0d | a5 20 54 68 65 72 65 20 |ot set..|. There |
|000021e0| 61 72 65 20 6e 6f 20 73 | 74 79 6c 65 73 20 6f 72 |are no s|tyles or|
|000021f0| 20 74 61 62 73 20 69 6e | 20 74 68 65 20 70 61 72 | tabs in| the par|
|00002200| 61 67 72 61 70 68 2e 0d | 09 5f 5f 5f 5f 5f 5f 5f |agraph..|._______|
|00002210| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002220| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002230| 5f 5f 5f 5f 0d 53 61 76 | 69 6e 67 20 63 6c 45 64 |____.Sav|ing clEd|
|00002240| 69 74 56 69 65 77 20 63 | 6f 6e 74 65 6e 74 73 20 |itView c|ontents |
|00002250| 74 6f 20 61 20 53 6f 75 | 70 20 28 31 30 2f 34 2f |to a Sou|p (10/4/|
|00002260| 39 33 29 0d 20 0d 51 3a | 09 48 6f 77 20 63 61 6e |93). .Q:|.How can|
|00002270| 20 49 20 73 61 76 65 20 | 74 68 65 20 63 6f 6e 74 | I save |the cont|
|00002280| 65 6e 74 73 20 6f 66 20 | 61 20 63 6c 45 64 69 74 |ents of |a clEdit|
|00002290| 56 69 65 77 20 28 74 68 | 65 20 63 6c 50 61 72 61 |View (th|e clPara|
|000022a0| 67 72 61 70 68 56 69 65 | 77 73 20 61 6e 64 20 63 |graphVie|ws and c|
|000022b0| 6c 50 6f 6c 79 67 6f 6e | 56 69 65 77 73 20 63 6f |lPolygon|Views co|
|000022c0| 6e 74 61 69 6e 69 6e 67 | 20 74 65 78 74 2c 20 73 |ntaining| text, s|
|000022d0| 68 61 70 65 73 2c 20 61 | 6e 64 20 69 6e 6b 29 20 |hapes, a|nd ink) |
|000022e0| 74 6f 20 61 20 73 6f 75 | 70 20 61 6e 64 20 72 65 |to a sou|p and re|
|000022f0| 73 74 6f 72 65 20 69 74 | 20 6c 61 74 65 72 3f 0d |store it| later?.|
|00002300| 41 3a 20 09 53 69 6d 70 | 6c 79 20 73 61 76 65 20 |A: .Simp|ly save |
|00002310| 74 68 65 20 76 69 65 77 | 43 68 69 6c 64 72 65 6e |the view|Children|
|00002320| 20 61 72 72 61 79 20 66 | 6f 72 20 74 68 65 20 63 | array f|or the c|
|00002330| 6c 45 64 69 74 56 69 65 | 77 2c 20 70 72 6f 62 61 |lEditVie|w, proba|
|00002340| 62 6c 79 20 69 6e 20 74 | 68 65 20 76 69 65 77 51 |bly in t|he viewQ|
|00002350| 75 69 74 53 63 72 69 70 | 74 2e 20 20 54 6f 20 72 |uitScrip|t. To r|
|00002360| 65 73 74 6f 72 65 2c 20 | 61 73 73 69 67 6e 20 74 |estore, |assign t|
|00002370| 68 65 20 61 72 72 61 79 | 20 66 72 6f 6d 20 74 68 |he array| from th|
|00002380| 65 20 73 6f 75 70 20 74 | 6f 20 74 68 65 20 76 69 |e soup t|o the vi|
|00002390| 65 77 43 68 69 6c 64 72 | 65 6e 20 73 6c 6f 74 2c |ewChildr|en slot,|
|000023a0| 20 65 69 74 68 65 72 20 | 61 74 20 76 69 65 77 53 | either |at viewS|
|000023b0| 65 74 75 70 46 6f 72 6d | 53 63 72 69 70 74 20 6f |etupForm|Script o|
|000023c0| 72 20 76 69 65 77 53 65 | 74 75 70 43 68 69 6c 64 |r viewSe|tupChild|
|000023d0| 72 65 6e 53 63 72 69 70 | 74 20 74 69 6d 65 20 6f |renScrip|t time o|
|000023e0| 72 20 6c 61 74 65 72 3b | 20 74 68 65 6e 20 64 6f |r later;| then do|
|000023f0| 20 52 65 64 6f 43 68 69 | 6c 64 72 65 6e 2e 0d 09 | RedoChi|ldren...|
|00002400| 59 6f 75 20 73 68 6f 75 | 6c 64 6e 27 74 20 74 72 |You shou|ldn't tr|
|00002410| 79 20 74 6f 20 6b 6e 6f | 77 20 22 61 6c 6c 22 20 |y to kno|w "all" |
|00002420| 74 68 65 20 73 6c 6f 74 | 73 20 69 6e 20 61 20 74 |the slot|s in a t|
|00002430| 65 6d 70 6c 61 74 65 20 | 69 6e 20 74 68 65 20 76 |emplate |in the v|
|00002440| 69 65 77 43 68 69 6c 64 | 72 65 6e 20 61 72 72 61 |iewChild|ren arra|
|00002450| 79 2e 20 28 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |y. (For |example,|
|00002460| 20 74 65 78 74 20 68 61 | 73 20 6f 70 74 69 6f 6e | text ha|s option|
|00002470| 61 6c 20 73 6c 6f 74 73 | 20 66 6f 72 20 66 6f 6e |al slots| for fon|
|00002480| 74 73 20 61 6e 64 20 74 | 61 62 73 2c 20 73 68 61 |ts and t|abs, sha|
|00002490| 70 65 73 20 68 61 76 65 | 20 6f 70 74 69 6f 6e 61 |pes have| optiona|
|000024a0| 6c 20 73 6c 6f 74 73 20 | 66 6f 72 20 70 65 6e 20 |l slots |for pen |
|000024b0| 77 69 64 74 68 2c 20 61 | 6e 64 20 6e 65 77 20 6f |width, a|nd new o|
|000024c0| 70 74 69 6f 6e 61 6c 20 | 73 6c 6f 74 73 20 6d 61 |ptional |slots ma|
|000024d0| 79 20 62 65 20 61 64 64 | 65 64 20 69 6e 20 66 75 |y be add|ed in fu|
|000024e0| 74 75 72 65 20 76 65 72 | 73 69 6f 6e 73 2e 29 20 |ture ver|sions.) |
|000024f0| 20 53 61 76 69 6e 67 20 | 74 68 65 20 77 68 6f 6c | Saving |the whol|
|00002500| 65 20 61 72 72 61 79 20 | 61 6c 73 6f 20 61 6c 6c |e array |also all|
|00002510| 6f 77 73 20 79 6f 75 20 | 74 6f 20 67 72 61 63 65 |ows you |to grace|
|00002520| 66 75 6c 6c 79 20 68 61 | 6e 64 6c 65 20 74 65 6d |fully ha|ndle tem|
|00002530| 70 6c 61 74 65 73 20 69 | 6e 20 74 68 65 20 76 69 |plates i|n the vi|
|00002540| 65 77 43 68 69 6c 64 72 | 65 6e 20 61 72 72 61 79 |ewChildr|en array|
|00002550| 20 74 68 61 74 20 64 6f | 6e 27 74 20 68 61 76 65 | that do|n't have|
|00002560| 20 61 6e 20 69 6e 6b 2c | 20 70 6f 69 6e 74 73 2c | an ink,| points,|
|00002570| 20 6f 72 20 74 65 78 74 | 20 73 6c 6f 74 2e 20 20 | or text| slot. |
|00002580| 49 6e 20 74 68 65 20 66 | 75 74 75 72 65 2c 20 74 |In the f|uture, t|
|00002590| 68 65 72 65 20 6d 61 79 | 20 62 65 20 63 68 69 6c |here may| be chil|
|000025a0| 64 72 65 6e 20 74 68 61 | 74 20 72 65 70 72 65 73 |dren tha|t repres|
|000025b0| 65 6e 74 20 6f 74 68 65 | 72 20 20 64 61 74 61 20 |ent othe|r data |
|000025c0| 74 79 70 65 73 2e 0d 09 | 5f 5f 5f 5f 5f 5f 5f 5f |types...|________|
|000025d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000025e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000025f0| 5f 5f 5f 0d 4b 65 79 62 | 6f 61 72 64 42 75 74 74 |___.Keyb|oardButt|
|00002600| 6f 6e 20 28 31 30 2f 38 | 2f 39 33 29 0d 51 3a 20 |on (10/8|/93).Q: |
|00002610| 09 48 6f 77 20 64 6f 20 | 49 20 6d 61 6b 65 20 61 |.How do |I make a|
|00002620| 20 62 75 74 74 6f 6e 20 | 6c 69 6b 65 20 74 68 65 | button |like the|
|00002630| 20 4b 65 79 62 6f 61 72 | 64 20 62 75 74 74 6f 6e | Keyboar|d button|
|00002640| 20 69 6e 20 74 68 65 20 | 70 61 70 65 72 72 6f 6c | in the |paperrol|
|00002650| 6c 3f 0d 41 3a 09 4d 61 | 6b 65 20 61 20 70 69 63 |l?.A:.Ma|ke a pic|
|00002660| 74 75 72 65 20 62 75 74 | 74 6f 6e 20 77 69 74 68 |ture but|ton with|
|00002670| 20 76 69 65 77 46 6f 72 | 6d 61 74 20 6f 66 20 20 | viewFor|mat of |
|00002680| 30 20 61 6e 64 20 69 63 | 6f 6e 20 73 65 74 20 74 |0 and ic|on set t|
|00002690| 6f 20 74 68 65 20 52 4f | 4d 20 6f 62 6a 65 63 74 |o the RO|M object|
|000026a0| 20 6b 65 79 62 75 74 74 | 62 69 74 6d 61 70 2e 20 | keybutt|bitmap. |
|000026b0| 20 49 6e 20 74 68 65 20 | 62 75 74 74 6f 6e 43 6c | In the |buttonCl|
|000026c0| 69 63 6b 53 63 72 69 70 | 74 20 6f 66 20 74 68 65 |ickScrip|t of the|
|000026d0| 20 62 75 74 74 6f 6e 2c | 20 63 61 6c 6c 20 61 6c | button,| call al|
|000026e0| 70 68 61 4b 65 79 62 6f | 61 72 64 3a 54 6f 67 67 |phaKeybo|ard:Togg|
|000026f0| 6c 65 28 29 2e 20 20 54 | 6f 20 67 65 74 20 74 68 |le(). T|o get th|
|00002700| 65 20 6f 74 68 65 72 20 | 6b 65 79 62 6f 61 72 64 |e other |keyboard|
|00002710| 73 2c 20 75 73 65 20 6e | 75 6d 65 72 69 63 4b 65 |s, use n|umericKe|
|00002720| 79 62 6f 61 72 64 2c 20 | 70 68 6f 6e 65 4b 65 79 |yboard, |phoneKey|
|00002730| 62 6f 61 72 64 2c 20 61 | 6e 64 20 64 61 74 65 4b |board, a|nd dateK|
|00002740| 65 79 62 6f 61 72 64 2e | 0d 09 5f 5f 5f 5f 5f 5f |eyboard.|..______|
|00002750| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002760| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002770| 5f 5f 5f 5f 5f 0d 53 65 | 74 75 70 50 6f 70 4d 61 |_____.Se|tupPopMa|
|00002780| 72 6b 20 61 6e 64 20 43 | 6c 65 61 72 50 6f 70 75 |rk and C|learPopu|
|00002790| 70 4d 61 72 6b 20 28 31 | 30 2f 31 34 2f 39 33 29 |pMark (1|0/14/93)|
|000027a0| 0d 54 68 65 20 66 75 6e | 63 74 69 6f 6e 20 53 65 |.The fun|ction Se|
|000027b0| 74 50 6f 70 75 70 4d 61 | 72 6b 20 73 65 74 73 20 |tPopupMa|rk sets |
|000027c0| 74 68 65 20 63 68 65 63 | 6b 20 6d 61 72 6b 20 66 |the chec|k mark f|
|000027d0| 6f 72 20 61 6e 20 69 74 | 65 6d 20 69 6e 20 61 20 |or an it|em in a |
|000027e0| 6c 69 73 74 20 6f 66 20 | 70 6f 70 75 70 20 69 74 |list of |popup it|
|000027f0| 65 6d 73 2e 20 20 59 6f | 75 20 77 6f 75 6c 64 20 |ems. Yo|u would |
|00002800| 75 73 65 20 69 74 20 69 | 6e 20 61 20 70 69 63 6b |use it i|n a pick|
|00002810| 41 63 74 69 6f 6e 53 63 | 72 69 70 74 20 6c 69 6b |ActionSc|ript lik|
|00002820| 65 20 74 68 69 73 3a 0d | 6c 61 62 65 6c 43 6f 6d |e this:.|labelCom|
|00002830| 6d 61 6e 64 73 20 3a 3d | 20 43 6c 6f 6e 65 28 6c |mands :=| Clone(l|
|00002840| 61 62 65 6c 43 6f 6d 6d | 61 6e 64 73 29 3b 20 20 |abelComm|ands); |
|00002850| 20 20 2f 2f 20 6d 61 6b | 65 20 61 20 6d 6f 64 69 | // mak|e a modi|
|00002860| 66 69 61 62 6c 65 20 63 | 6f 70 79 0d 53 65 74 50 |fiable c|opy.SetP|
|00002870| 6f 70 75 70 4d 61 72 6b | 28 6c 61 62 65 6c 43 6f |opupMark|(labelCo|
|00002880| 6d 6d 61 6e 64 73 2c 20 | 61 63 74 69 6f 6e 43 6f |mmands, |actionCo|
|00002890| 64 65 29 3b 20 20 2f 2f | 20 63 68 65 63 6b 20 74 |de); //| check t|
|000028a0| 68 65 20 69 74 65 6d 20 | 63 68 6f 73 65 6e 0d 54 |he item |chosen.T|
|000028b0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 43 6c 65 61 |he funct|ion Clea|
|000028c0| 72 50 6f 70 75 70 4d 61 | 72 6b 20 63 6c 65 61 72 |rPopupMa|rk clear|
|000028d0| 73 20 61 6c 6c 20 74 68 | 65 20 6d 61 72 6b 73 20 |s all th|e marks |
|000028e0| 66 72 6f 6d 20 70 6f 70 | 75 70 20 69 74 65 6d 73 |from pop|up items|
|000028f0| 2e 20 20 59 6f 75 20 77 | 6f 75 6c 64 20 75 73 65 |. You w|ould use|
|00002900| 20 69 74 20 69 6e 20 61 | 20 73 63 72 69 70 74 20 | it in a| script |
|00002910| 6c 69 6b 65 20 74 68 69 | 73 3a 20 20 20 20 0d 6c |like thi|s: .l|
|00002920| 61 62 65 6c 43 6f 6d 6d | 61 6e 64 73 20 3a 3d 20 |abelComm|ands := |
|00002930| 43 6c 6f 6e 65 28 6c 61 | 62 65 6c 43 6f 6d 6d 61 |Clone(la|belComma|
|00002940| 6e 64 73 29 3b 20 20 20 | 20 20 20 2f 2f 20 6d 61 |nds); | // ma|
|00002950| 6b 65 20 61 20 6d 6f 64 | 69 66 69 61 62 6c 65 20 |ke a mod|ifiable |
|00002960| 63 6f 70 79 0d 43 6c 65 | 61 72 50 6f 70 75 70 4d |copy.Cle|arPopupM|
|00002970| 61 72 6b 28 6c 61 62 65 | 6c 43 6f 6d 6d 61 6e 64 |ark(labe|lCommand|
|00002980| 73 2c 20 61 63 74 69 6f | 6e 43 6f 64 65 29 3b 20 |s, actio|nCode); |
|00002990| 20 2f 2f 20 63 6c 65 61 | 72 20 61 6c 6c 20 74 68 | // clea|r all th|
|000029a0| 65 20 6d 61 72 6b 73 0d | 43 6c 65 61 72 50 6f 70 |e marks.|ClearPop|
|000029b0| 75 70 4d 61 72 6b 20 68 | 61 73 20 74 68 65 20 73 |upMark h|as the s|
|000029c0| 69 64 65 20 65 66 66 65 | 63 74 20 6f 66 20 74 68 |ide effe|ct of th|
|000029d0| 72 6f 77 69 6e 67 20 61 | 77 61 79 20 61 6c 6c 20 |rowing a|way all |
|000029e0| 73 6c 6f 74 73 20 69 6e | 20 65 61 63 68 20 69 74 |slots in| each it|
|000029f0| 65 6d 20 66 72 61 6d 65 | 20 65 78 63 65 70 74 20 |em frame| except |
|00002a00| 74 68 65 20 69 74 65 6d | 20 73 6c 6f 74 2e 20 49 |the item| slot. I|
|00002a10| 66 20 79 6f 75 20 68 61 | 76 65 20 75 6e 70 69 63 |f you ha|ve unpic|
|00002a20| 6b 61 62 6c 65 20 69 74 | 65 6d 73 20 28 61 20 70 |kable it|ems (a p|
|00002a30| 69 63 6b 61 62 6c 65 20 | 73 6c 6f 74 20 73 65 74 |ickable |slot set|
|00002a40| 20 74 6f 20 6e 69 6c 29 | 2c 20 69 74 20 77 6f 75 | to nil)|, it wou|
|00002a50| 6c 64 20 62 65 20 63 68 | 61 6e 67 65 64 20 74 6f |ld be ch|anged to|
|00002a60| 20 70 69 63 6b 61 62 6c | 65 21 0d 4e 6f 74 65 20 | pickabl|e!.Note |
|00002a70| 61 6c 73 6f 20 74 68 61 | 74 20 69 66 20 79 6f 75 |also tha|t if you|
|00002a80| 20 77 61 6e 74 20 74 6f | 20 75 73 65 20 61 20 6d | want to| use a m|
|00002a90| 61 72 6b 20 6f 74 68 65 | 72 20 74 68 61 6e 20 74 |ark othe|r than t|
|00002aa0| 68 65 20 63 68 65 63 6b | 20 6d 61 72 6b 2c 20 79 |he check| mark, y|
|00002ab0| 6f 75 20 6e 65 65 64 20 | 74 6f 20 64 6f 20 74 68 |ou need |to do th|
|00002ac0| 69 73 20 70 72 6f 67 72 | 61 6d 61 74 69 63 61 6c |is progr|amatical|
|00002ad0| 6c 79 20 28 61 73 20 64 | 65 73 63 72 69 62 65 64 |ly (as d|escribed|
|00002ae0| 20 69 6e 20 74 68 65 20 | 64 69 73 63 75 73 73 69 | in the |discussi|
|00002af0| 6f 6e 20 6f 66 20 44 6f | 50 6f 70 75 70 20 4e 50 |on of Do|Popup NP|
|00002b00| 47 20 70 61 67 65 20 32 | 2d 36 34 29 2e 0d 09 5f |G page 2|-64)..._|
|00002b10| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002b20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002b30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 47 72 6f 77 20 45 |________|_.Grow E|
|00002b40| 66 66 65 63 74 20 28 31 | 31 2f 31 30 2f 39 33 29 |ffect (1|1/10/93)|
|00002b50| 0d 51 3a 09 20 49 20 77 | 6f 75 6c 64 20 6c 69 6b |.Q:. I w|ould lik|
|00002b60| 65 20 74 6f 20 72 65 73 | 69 7a 65 20 61 20 6e 75 |e to res|ize a nu|
|00002b70| 6d 62 65 72 20 6f 66 20 | 63 68 69 6c 64 20 76 69 |mber of |child vi|
|00002b80| 65 77 73 20 62 79 20 64 | 72 61 67 67 69 6e 67 20 |ews by d|ragging |
|00002b90| 61 20 27 68 6f 74 20 73 | 70 6f 74 27 20 69 6e 20 |a 'hot s|pot' in |
|00002ba0| 74 68 65 20 62 6f 74 74 | 6f 6d 20 72 69 67 68 74 |the bott|om right|
|00002bb0| 20 63 6f 72 6e 65 72 20 | 6f 66 20 74 68 65 20 76 | corner |of the v|
|00002bc0| 69 65 77 2c 20 73 69 6d | 69 6c 61 72 20 74 6f 20 |iew, sim|ilar to |
|00002bd0| 74 68 65 20 67 72 6f 77 | 20 69 63 6f 6e 20 6f 6e |the grow| icon on|
|00002be0| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 2e 20 | the Mac|intosh. |
|00002bf0| 49 20 64 6f 6e 27 74 20 | 73 65 65 20 61 6e 79 20 |I don't |see any |
|00002c00| 77 61 79 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 |way to c|reate a |
|00002c10| 67 72 6f 77 20 72 65 63 | 74 61 6e 67 6c 65 20 77 |grow rec|tangle w|
|00002c20| 68 69 6c 65 20 74 68 65 | 20 75 73 65 72 20 69 73 |hile the| user is|
|00002c30| 20 72 65 73 69 7a 69 6e | 67 20 74 68 65 20 63 68 | resizin|g the ch|
|00002c40| 69 6c 64 20 76 69 65 77 | 2e 20 49 73 20 74 68 65 |ild view|. Is the|
|00002c50| 72 65 20 61 20 77 61 79 | 20 74 6f 20 69 6d 70 6c |re a way| to impl|
|00002c60| 65 6d 65 6e 74 20 74 68 | 69 73 3f 20 49 27 6d 20 |ement th|is? I'm |
|00002c70| 74 72 79 69 6e 67 20 74 | 6f 20 75 73 65 20 74 68 |trying t|o use th|
|00002c80| 65 20 76 69 65 77 3a 44 | 72 61 67 20 6d 65 74 68 |e view:D|rag meth|
|00002c90| 6f 64 2e 0d 41 3a 09 54 | 68 65 20 76 69 65 77 3a |od..A:.T|he view:|
|00002ca0| 44 72 61 67 20 6d 65 74 | 68 6f 64 20 64 6f 65 73 |Drag met|hod does|
|00002cb0| 20 6e 6f 74 20 72 65 61 | 6c 6c 79 20 64 6f 20 77 | not rea|lly do w|
|00002cc0| 68 61 74 20 79 6f 75 20 | 77 61 6e 74 2e 20 49 74 |hat you |want. It|
|00002cd0| 20 74 61 6b 65 73 20 74 | 68 65 20 62 69 74 73 20 | takes t|he bits |
|00002ce0| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 20 69 6e |on the s|creen in|
|00002cf0| 73 69 64 65 20 74 68 65 | 20 72 65 63 74 61 6e 67 |side the| rectang|
|00002d00| 6c 65 20 28 74 68 65 20 | 76 69 65 77 20 62 6f 75 |le (the |view bou|
|00002d10| 6e 64 61 72 79 29 2c 20 | 61 6e 64 20 62 6c 69 74 |ndary), |and blit|
|00002d20| 73 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 74 |s the co|ntents t|
|00002d30| 6f 20 6d 61 6b 65 20 69 | 74 20 66 6f 6c 6c 6f 77 |o make i|t follow|
|00002d40| 20 74 68 65 20 70 65 6e | 20 28 74 68 61 74 20 69 | the pen| (that i|
|00002d50| 73 2c 20 74 68 65 20 73 | 79 73 74 65 6d 20 63 61 |s, the s|ystem ca|
|00002d60| 70 74 75 72 65 73 20 74 | 68 65 20 62 69 74 73 20 |ptures t|he bits |
|00002d70| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |correspo|nding to|
|00002d80| 20 74 68 65 20 76 69 65 | 77 20 61 6e 64 20 63 6f | the vie|w and co|
|00002d90| 6e 74 69 6e 75 61 6c 6c | 79 20 64 72 61 77 73 20 |ntinuall|y draws |
|00002da0| 74 68 65 6d 20 74 6f 20 | 74 68 65 20 73 63 72 65 |them to |the scre|
|00002db0| 65 6e 20 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |en based| on the |
|00002dc0| 70 65 6e 20 70 6f 73 69 | 74 69 6f 6e 29 2e 0d 09 |pen posi|tion)...|
|00002dd0| 54 68 65 20 74 65 63 68 | 6e 69 71 75 65 20 66 6f |The tech|nique fo|
|00002de0| 72 20 74 68 69 73 20 69 | 73 20 74 6f 20 74 72 61 |r this i|s to tra|
|00002df0| 63 6b 20 74 68 65 20 70 | 65 6e 20 79 6f 75 72 73 |ck the p|en yours|
|00002e00| 65 6c 66 20 75 73 69 6e | 67 20 74 68 65 20 76 69 |elf usin|g the vi|
|00002e10| 65 77 43 6c 69 63 6b 53 | 63 72 69 70 74 2c 20 77 |ewClickS|cript, w|
|00002e20| 61 74 63 68 20 74 68 65 | 20 76 61 6c 75 65 73 20 |atch the| values |
|00002e30| 6f 66 20 47 65 74 50 6f | 69 6e 74 20 61 6e 64 20 |of GetPo|int and |
|00002e40| 53 74 72 6f 6b 65 44 6f | 6e 65 2c 20 61 6e 64 20 |StrokeDo|ne, and |
|00002e50| 64 72 61 77 20 61 6e 20 | 58 4f 52 3a 65 64 20 67 |draw an |XOR:ed g|
|00002e60| 72 61 79 20 72 65 63 74 | 61 6e 67 6c 65 2e 20 53 |ray rect|angle. S|
|00002e70| 65 65 20 74 68 65 20 53 | 69 7a 65 20 44 6f 65 73 |ee the S|ize Does|
|00002e80| 20 4e 6f 74 20 4d 61 74 | 74 65 72 20 73 61 6d 70 | Not Mat|ter samp|
|00002e90| 6c 65 20 66 6f 72 20 6d | 6f 72 65 20 64 65 74 61 |le for m|ore deta|
|00002ea0| 69 6c 73 2e 0d 09 43 6f | 6e 63 65 72 6e 69 6e 67 |ils...Co|ncerning|
|00002eb0| 20 74 68 65 20 75 73 65 | 72 20 69 6e 74 65 72 66 | the use|r interf|
|00002ec0| 61 63 65 2c 20 69 74 20 | 69 73 20 67 6f 6f 64 20 |ace, it |is good |
|00002ed0| 70 6f 6c 69 63 79 20 74 | 6f 20 61 6c 6c 6f 77 20 |policy t|o allow |
|00002ee0| 64 72 61 67 67 69 6e 67 | 20 77 68 65 6e 20 74 61 |dragging| when ta|
|00002ef0| 70 73 20 6f 63 63 75 72 | 20 6e 65 61 72 20 74 68 |ps occur| near th|
|00002f00| 65 20 65 64 67 65 20 6f | 66 20 74 68 65 20 76 69 |e edge o|f the vi|
|00002f10| 65 77 2c 20 61 6e 64 20 | 74 6f 20 65 78 74 65 6e |ew, and |to exten|
|00002f20| 64 20 74 68 69 73 20 74 | 6f 20 72 65 73 69 7a 69 |d this t|o resizi|
|00002f30| 6e 67 20 61 74 20 74 68 | 65 20 6c 6f 77 65 72 20 |ng at th|e lower |
|00002f40| 72 69 67 68 74 20 63 6f | 72 6e 65 72 2c 20 61 6e |right co|rner, an|
|00002f50| 64 20 70 65 72 68 61 70 | 73 20 61 74 20 61 6e 79 |d perhap|s at any|
|00002f60| 20 63 6f 72 6e 65 72 2e | 20 53 74 61 79 20 74 75 | corner.| Stay tu|
|00002f70| 6e 65 64 20 66 6f 72 20 | 6d 6f 72 65 20 75 73 65 |ned for |more use|
|00002f80| 72 20 69 6e 74 65 72 66 | 61 63 65 20 67 75 69 64 |r interf|ace guid|
|00002f90| 65 6c 69 6e 65 73 20 61 | 62 6f 75 74 20 74 68 69 |elines a|bout thi|
|00002fa0| 73 2e 0d 09 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |s...____|________|
|00002fb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00002fc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|00002fd0| 76 69 65 77 46 6f 72 6d | 61 74 20 56 61 6c 75 65 |viewForm|at Value|
|00002fe0| 20 43 68 61 6e 67 65 73 | 20 28 31 31 2f 31 30 2f | Changes| (11/10/|
|00002ff0| 39 33 29 0d 51 3a 09 48 | 6f 77 20 63 61 6e 20 49 |93).Q:.H|ow can I|
|00003000| 20 63 68 61 6e 67 65 20 | 74 68 65 20 76 61 6c 75 | change |the valu|
|00003010| 65 73 20 69 6e 20 74 68 | 65 20 76 69 65 77 46 6f |es in th|e viewFo|
|00003020| 72 6d 61 74 20 73 6c 6f | 74 20 6f 66 20 61 20 76 |rmat slo|t of a v|
|00003030| 69 65 77 20 77 69 74 68 | 6f 75 74 20 63 6c 6f 73 |iew with|out clos|
|00003040| 69 6e 67 20 61 6e 64 20 | 72 65 2d 6f 70 65 6e 69 |ing and |re-openi|
|00003050| 6e 67 20 74 68 65 20 76 | 69 65 77 3f 20 0d 41 3a |ng the v|iew? .A:|
|00003060| 09 4a 75 73 74 20 75 73 | 65 20 74 68 65 20 53 65 |.Just us|e the Se|
|00003070| 74 56 61 6c 75 65 20 66 | 75 6e 63 74 69 6f 6e 20 |tValue f|unction |
|00003080| 61 6e 64 20 74 68 65 20 | 76 69 65 77 20 77 69 6c |and the |view wil|
|00003090| 6c 20 62 65 20 72 65 64 | 72 61 77 6e 20 66 6f 72 |l be red|rawn for|
|000030a0| 20 79 6f 75 20 77 69 74 | 68 20 74 68 65 20 6e 65 | you wit|h the ne|
|000030b0| 77 20 66 6f 72 6d 61 74 | 20 73 65 74 74 69 6e 67 |w format| setting|
|000030c0| 73 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 3a 0d |s. For e|xample:.|
|000030d0| 09 09 53 65 74 56 61 6c | 75 65 28 6d 79 56 69 65 |..SetVal|ue(myVie|
|000030e0| 77 2c 20 27 76 69 65 77 | 46 6f 72 6d 61 74 2c 20 |w, 'view|Format, |
|000030f0| 33 33 37 29 20 20 0d 09 | 09 2f 2f 20 33 33 37 3d |337) ..|.// 337=|
|00003100| 76 66 46 69 6c 6c 57 68 | 69 74 65 2b 76 66 46 72 |vfFillWh|ite+vfFr|
|00003110| 61 6d 65 42 6c 61 63 6b | 2b 76 66 50 65 6e 28 31 |ameBlack|+vfPen(1|
|00003120| 29 0d 09 42 65 63 61 75 | 73 65 20 53 65 74 56 61 |)..Becau|se SetVa|
|00003130| 6c 75 65 20 63 61 6c 6c | 73 20 44 69 72 74 79 20 |lue call|s Dirty |
|00003140| 66 6f 72 20 79 6f 75 2c | 20 79 6f 75 20 64 6f 6e |for you,| you don|
|00003150| 27 74 20 6e 65 65 64 20 | 74 6f 20 44 69 72 74 79 |'t need |to Dirty|
|00003160| 20 74 68 65 20 76 69 65 | 77 20 77 68 65 6e 20 79 | the vie|w when y|
|00003170| 6f 75 20 75 73 65 20 53 | 65 74 56 61 6c 75 65 20 |ou use S|etValue |
|00003180| 74 6f 20 64 6f 20 73 6f | 6d 65 74 68 69 6e 67 20 |to do so|mething |
|00003190| 74 68 65 20 76 69 65 77 | 20 73 79 73 74 65 6d 20 |the view| system |
|000031a0| 6b 6e 6f 77 73 20 61 62 | 6f 75 74 2c 20 73 75 63 |knows ab|out, suc|
|000031b0| 68 20 61 73 20 63 68 61 | 6e 67 69 6e 67 20 76 69 |h as cha|nging vi|
|000031c0| 65 77 42 6f 75 6e 64 73 | 20 6f 72 20 20 74 65 78 |ewBounds| or tex|
|000031d0| 74 20 73 6c 6f 74 73 20 | 69 6e 20 74 68 65 20 76 |t slots |in the v|
|000031e0| 69 65 77 2e 0d 09 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |iew...__|________|
|000031f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003200| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003210| 5f 0d 47 65 74 48 69 6c | 69 74 65 4f 66 66 73 65 |_.GetHil|iteOffse|
|00003220| 74 73 20 28 31 31 2f 31 | 30 2f 39 33 29 20 28 4f |ts (11/1|0/93) (O|
|00003230| 62 73 6f 6c 65 74 65 64 | 20 62 79 20 31 2e 30 20 |bsoleted| by 1.0 |
|00003240| 4e 65 77 74 6f 6e 20 50 | 72 6f 67 72 61 6d 6d 65 |Newton P|rogramme|
|00003250| 72 27 73 20 47 75 69 64 | 65 20 70 32 2d 38 39 29 |r's Guid|e p2-89)|
|00003260| 0d 51 3a 09 49 20 77 6f | 75 6c 64 20 6c 69 6b 65 |.Q:.I wo|uld like|
|00003270| 20 74 6f 20 66 69 6e 64 | 20 6f 75 74 20 77 68 69 | to find| out whi|
|00003280| 63 68 20 69 74 65 6d 20 | 77 61 73 20 73 65 6c 65 |ch item |was sele|
|00003290| 63 74 65 64 20 69 6e 20 | 61 20 76 69 65 77 2e 20 |cted in |a view. |
|000032a0| 48 6f 77 20 69 73 20 74 | 68 69 73 20 64 6f 6e 65 |How is t|his done|
|000032b0| 3f 0d 41 3a 09 55 73 65 | 20 61 20 66 75 6e 63 74 |?.A:.Use| a funct|
|000032c0| 69 6f 6e 20 63 61 6c 6c | 65 64 20 47 65 74 48 69 |ion call|ed GetHi|
|000032d0| 6c 69 74 65 4f 66 66 73 | 65 74 73 2e 20 59 6f 75 |liteOffs|ets. You|
|000032e0| 20 6e 65 65 64 20 74 6f | 20 63 61 6c 6c 20 74 68 | need to| call th|
|000032f0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 20 63 |is funct|ion in c|
|00003300| 6f 6d 62 69 6e 61 74 69 | 6f 6e 20 77 69 74 68 20 |ombinati|on with |
|00003310| 74 68 65 20 48 69 6c 69 | 74 65 4f 77 6e 65 72 20 |the Hili|teOwner |
|00003320| 66 75 6e 63 74 69 6f 6e | 2e 20 57 68 65 6e 20 79 |function|. When y|
|00003330| 6f 75 20 63 61 6c 6c 20 | 48 69 6c 69 74 65 4f 66 |ou call |HiliteOf|
|00003340| 66 73 65 74 73 2c 20 69 | 74 20 77 69 6c 6c 20 72 |fsets, i|t will r|
|00003350| 65 74 75 72 6e 20 61 6e | 20 61 72 72 61 79 20 6f |eturn an| array o|
|00003360| 66 20 61 72 72 61 79 2e | 20 45 61 63 68 20 6f 66 |f array.| Each of|
|00003370| 20 74 68 65 20 6f 75 74 | 65 72 20 61 72 72 61 79 | the out|er array|
|00003380| 20 72 65 70 72 65 73 65 | 6e 74 73 20 73 65 6c 65 | represe|nts sele|
|00003390| 63 74 65 64 20 73 75 62 | 76 69 65 77 73 2c 20 61 |cted sub|views, a|
|000033a0| 73 20 69 6e 3a 0d 09 78 | 3a 3d 20 67 65 74 68 69 |s in:..x|:= gethi|
|000033b0| 6c 69 74 65 6f 66 66 73 | 65 74 73 28 29 0d 09 23 |liteoffs|ets()..#|
|000033c0| 34 34 30 43 41 36 39 20 | 20 09 5b 5b 7b 23 34 34 |440CA69 | .[[{#44|
|000033d0| 31 34 39 39 31 7d 2c 20 | 30 2c 20 32 5d 2c 20 0d |14991}, |0, 2], .|
|000033e0| 20 20 20 20 20 20 20 20 | 20 20 20 09 09 5b 7b 23 | | ..[{#|
|000033f0| 34 34 31 37 42 30 31 7d | 2c 20 30 2c 20 35 5d 2c |4417B01}|, 0, 5],|
|00003400| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 09 09 5b | . | ..[|
|00003410| 7b 23 34 34 31 38 30 32 | 39 7d 2c 20 31 2c 20 33 |{#441802|9}, 1, 3|
|00003420| 5d 5d 0d 09 45 61 63 68 | 20 6f 66 20 74 68 65 20 |]]..Each| of the |
|00003430| 74 68 72 65 65 20 72 65 | 74 75 72 6e 20 76 61 6c |three re|turn val|
|00003440| 75 65 73 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 72 |ues cont|ains thr|
|00003450| 65 65 20 65 6c 65 6d 65 | 6e 74 73 3a 0d 09 45 6c |ee eleme|nts:..El|
|00003460| 65 6d 65 6e 74 20 30 3a | 20 74 68 65 20 73 75 62 |ement 0:| the sub|
|00003470| 76 69 65 77 20 77 68 69 | 63 68 20 69 73 20 68 69 |view whi|ch is hi|
|00003480| 67 68 6c 69 67 68 74 65 | 64 2e 20 54 68 69 73 20 |ghlighte|d. This |
|00003490| 69 73 20 75 73 75 61 6c | 6c 79 20 61 20 63 6c 50 |is usual|ly a clP|
|000034a0| 61 72 61 67 72 61 70 68 | 56 69 65 77 2c 20 62 75 |aragraph|View, bu|
|000034b0| 74 20 79 6f 75 20 6d 75 | 73 74 20 63 68 65 63 6b |t you mu|st check|
|000034c0| 20 74 68 69 73 2e 20 63 | 6c 50 6f 6c 79 67 6f 6e | this. c|lPolygon|
|000034d0| 56 69 65 77 73 20 77 69 | 6c 6c 20 6e 6f 74 20 62 |Views wi|ll not b|
|000034e0| 65 20 72 65 74 75 72 6e | 65 64 20 68 65 72 65 20 |e return|ed here |
|000034f0| 65 76 65 6e 20 69 66 20 | 48 69 6c 69 74 65 4f 77 |even if |HiliteOw|
|00003500| 6e 65 72 20 72 65 74 75 | 72 6e 73 20 61 20 63 6c |ner retu|rns a cl|
|00003510| 45 64 69 74 56 69 65 77 | 20 77 68 65 6e 20 61 20 |EditView| when a |
|00003520| 63 6c 50 6f 6c 79 67 6f | 6e 56 69 65 77 20 63 68 |clPolygo|nView ch|
|00003530| 69 6c 64 20 69 73 20 68 | 69 67 68 6c 69 67 68 74 |ild is h|ighlight|
|00003540| 65 64 2e 0d 09 45 6c 65 | 6d 65 6e 74 20 31 3a 20 |ed...Ele|ment 1: |
|00003550| 54 68 69 73 20 69 73 20 | 74 68 65 20 73 74 61 72 |This is |the star|
|00003560| 74 20 70 6f 73 69 74 69 | 6f 6e 20 6f 66 20 74 68 |t positi|on of th|
|00003570| 65 20 74 65 78 74 20 66 | 6f 75 6e 64 20 69 6e 20 |e text f|ound in |
|00003580| 74 68 65 20 74 65 78 74 | 20 73 6c 6f 74 20 6f 66 |the text| slot of|
|00003590| 20 61 20 63 6c 50 61 72 | 61 67 72 61 70 68 56 69 | a clPar|agraphVi|
|000035a0| 65 77 2e 0d 09 45 6c 65 | 6d 65 6e 74 20 32 3a 20 |ew...Ele|ment 2: |
|000035b0| 54 68 69 73 20 69 73 20 | 74 68 65 20 65 6e 64 20 |This is |the end |
|000035c0| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |position| of the |
|000035d0| 74 65 78 74 20 66 6f 75 | 6e 64 20 69 6e 20 74 68 |text fou|nd in th|
|000035e0| 65 20 74 65 78 74 20 73 | 6c 6f 74 20 6f 66 20 61 |e text s|lot of a|
|000035f0| 20 63 6c 50 61 72 61 67 | 72 61 70 68 56 69 65 77 | clParag|raphView|
|00003600| 2e 0d 09 54 6f 20 76 65 | 72 69 66 79 20 74 68 61 |...To ve|rify tha|
|00003610| 74 20 79 6f 75 72 20 76 | 69 65 77 20 69 73 20 61 |t your v|iew is a|
|00003620| 20 63 6c 50 61 72 61 67 | 72 61 70 68 56 69 65 77 | clParag|raphView|
|00003630| 2c 20 63 68 65 63 6b 20 | 74 68 65 20 76 69 65 77 |, check |the view|
|00003640| 43 6c 61 73 73 20 73 6c | 6f 74 20 6f 66 20 74 68 |Class sl|ot of th|
|00003650| 65 20 76 69 65 77 2e 20 | 20 54 68 65 20 76 61 6c |e view. | The val|
|00003660| 75 65 20 72 65 74 75 72 | 6e 65 64 20 28 64 79 6e |ue retur|ned (dyn|
|00003670| 61 6d 69 63 61 6c 6c 79 | 29 20 73 6f 6d 65 74 69 |amically|) someti|
|00003680| 6d 65 73 20 68 61 73 20 | 61 20 68 69 67 68 20 62 |mes has |a high b|
|00003690| 69 74 20 73 65 74 20 74 | 68 61 74 20 79 6f 75 20 |it set t|hat you |
|000036a0| 6e 65 65 64 20 74 6f 20 | 74 61 6b 65 20 69 6e 74 |need to |take int|
|000036b0| 6f 20 63 6f 6e 73 69 64 | 65 72 61 74 69 6f 6e 20 |o consid|eration |
|000036c0| 75 73 69 6e 67 20 61 20 | 6d 61 73 6b 20 63 6f 6e |using a |mask con|
|000036d0| 73 74 61 6e 74 2c 20 76 | 63 43 6c 61 73 73 4d 61 |stant, v|cClassMa|
|000036e0| 73 6b 2c 20 61 73 20 69 | 6e 3a 0d 09 74 68 65 56 |sk, as i|n:..theV|
|000036f0| 69 65 77 73 2e 76 69 65 | 77 43 6c 61 73 73 20 3d |iews.vie|wClass =|
|00003700| 20 63 6c 50 61 72 61 67 | 72 61 70 68 56 69 65 77 | clParag|raphView|
|00003710| 20 20 4f 52 20 0d 09 74 | 68 65 56 69 65 77 2e 76 | OR ..t|heView.v|
|00003720| 69 65 77 43 6c 61 73 73 | 20 2d 20 76 63 43 6c 61 |iewClass| - vcCla|
|00003730| 73 73 4d 61 73 6b 20 20 | 3d 20 63 6c 50 61 72 61 |ssMask |= clPara|
|00003740| 67 72 61 70 68 56 69 65 | 77 0d 09 49 66 20 61 20 |graphVie|w..If a |
|00003750| 67 72 61 70 68 69 63 20 | 69 73 20 68 69 67 68 6c |graphic |is highl|
|00003760| 69 67 68 74 65 64 20 61 | 6e 64 20 48 69 6c 69 74 |ighted a|nd Hilit|
|00003770| 65 4f 77 6e 65 72 20 72 | 65 74 75 72 6e 73 20 61 |eOwner r|eturns a|
|00003780| 20 63 6c 45 64 69 74 56 | 69 65 77 2c 20 63 68 65 | clEditV|iew, che|
|00003790| 63 6b 20 69 74 73 20 76 | 69 65 77 20 63 68 69 6c |ck its v|iew chil|
|000037a0| 64 72 65 6e 20 66 6f 72 | 20 6e 6f 6e 2d 6e 69 6c |dren for| non-nil|
|000037b0| 20 76 61 6c 75 65 73 20 | 6f 66 20 74 68 65 20 68 | values |of the h|
|000037c0| 69 6c 69 74 65 73 20 73 | 6c 6f 74 2e 0d 09 5f 5f |ilites s|lot...__|
|000037d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000037e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000037f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 52 65 6a 65 63 74 |________|_.Reject|
|00003800| 69 6e 67 20 56 69 65 77 | 20 41 64 64 69 74 69 6f |ing View| Additio|
|00003810| 6e 73 20 28 31 31 2f 31 | 30 2f 39 33 29 0d 51 3a |ns (11/1|0/93).Q:|
|00003820| 09 48 6f 77 20 63 61 6e | 20 49 20 70 72 65 76 65 |.How can| I preve|
|00003830| 6e 74 20 61 20 76 69 65 | 77 20 66 72 6f 6d 20 62 |nt a vie|w from b|
|00003840| 65 69 6e 67 20 61 64 64 | 65 64 3f 20 49 20 77 6f |eing add|ed? I wo|
|00003850| 75 6c 64 20 6c 69 6b 65 | 20 74 6f 20 63 6f 6e 74 |uld like| to cont|
|00003860| 72 6f 6c 20 77 68 61 74 | 20 69 73 20 68 61 70 70 |rol what| is happ|
|00003870| 65 6e 69 6e 67 20 69 6e | 73 69 64 65 20 74 68 65 |ening in|side the|
|00003880| 20 76 69 65 77 41 64 64 | 53 63 72 69 70 74 2e 0d | viewAdd|Script..|
|00003890| 41 3a 09 54 68 65 20 76 | 69 65 77 41 64 64 53 63 |A:.The v|iewAddSc|
|000038a0| 72 69 70 74 20 6d 75 73 | 74 20 6d 61 6b 65 20 73 |ript mus|t make s|
|000038b0| 75 72 65 20 74 68 61 74 | 20 61 20 76 69 65 77 20 |ure that| a view |
|000038c0| 69 73 20 6d 61 64 65 20 | 66 72 6f 6d 20 74 68 65 |is made |from the|
|000038d0| 20 74 65 6d 70 6c 61 74 | 65 20 69 74 27 73 20 70 | templat|e it's p|
|000038e0| 61 73 73 65 64 2c 20 65 | 69 74 68 65 72 20 62 79 |assed, e|ither by|
|000038f0| 20 64 6f 69 6e 67 20 69 | 74 20 69 6e 73 69 64 65 | doing i|t inside|
|00003900| 20 74 68 65 20 76 69 65 | 77 41 64 64 53 63 72 69 | the vie|wAddScri|
|00003910| 70 74 2c 20 6f 72 20 62 | 79 20 72 65 74 75 72 6e |pt, or b|y return|
|00003920| 69 6e 67 20 6e 69 6c 2c | 20 73 6f 20 74 68 65 20 |ing nil,| so the |
|00003930| 76 69 65 77 20 73 79 73 | 74 65 6d 20 77 69 6c 6c |view sys|tem will|
|00003940| 20 64 6f 20 74 68 65 20 | 76 69 65 77 2e 20 43 75 | do the |view. Cu|
|00003950| 72 72 65 6e 74 6c 79 2c | 20 68 6f 77 65 76 65 72 |rrently,| however|
|00003960| 2c 20 74 68 65 72 65 27 | 73 20 61 20 62 75 67 20 |, there'|s a bug |
|00003970| 69 6e 20 74 68 65 20 73 | 79 73 74 65 6d 2c 20 73 |in the s|ystem, s|
|00003980| 6f 20 69 66 20 79 6f 75 | 20 72 65 74 75 72 6e 20 |o if you| return |
|00003990| 74 72 75 65 20 74 68 65 | 20 61 70 70 6c 69 63 61 |true the| applica|
|000039a0| 74 69 6f 6e 20 68 61 6e | 67 73 2e 0d 09 50 72 61 |tion han|gs...Pra|
|000039b0| 63 74 69 63 61 6c 6c 79 | 2c 20 61 6c 6c 20 76 69 |ctically|, all vi|
|000039c0| 65 77 41 64 64 53 63 72 | 69 70 74 20 63 61 6e 20 |ewAddScr|ipt can |
|000039d0| 64 6f 20 6a 75 73 74 20 | 6e 6f 77 20 69 73 20 74 |do just |now is t|
|000039e0| 6f 20 6d 6f 64 69 66 79 | 20 74 68 65 20 74 65 6d |o modify| the tem|
|000039f0| 70 6c 61 74 65 2c 20 61 | 6e 64 20 69 74 20 73 68 |plate, a|nd it sh|
|00003a00| 6f 75 6c 64 20 61 6c 77 | 61 79 73 20 72 65 74 75 |ould alw|ays retu|
|00003a10| 72 6e 20 6e 69 6c 2e 0d | 09 48 65 72 65 20 69 73 |rn nil..|.Here is|
|00003a20| 20 61 20 70 6f 73 73 69 | 62 6c 65 20 77 6f 72 6b | a possi|ble work|
|00003a30| 61 72 6f 75 6e 64 3a 20 | 6d 6f 64 69 66 79 20 74 |around: |modify t|
|00003a40| 68 65 20 74 65 6d 70 6c | 61 74 65 20 74 6f 20 62 |he templ|ate to b|
|00003a50| 65 20 69 6e 76 69 73 69 | 62 6c 65 2c 20 61 6e 64 |e invisi|ble, and|
|00003a60| 20 72 65 74 75 72 6e 20 | 6e 69 6c 3b 20 74 68 65 | return |nil; the|
|00003a70| 6e 20 6c 61 74 65 72 20 | 72 65 6d 6f 76 65 20 74 |n later |remove t|
|00003a80| 68 65 20 76 69 65 77 20 | 74 68 61 74 20 77 61 73 |he view |that was|
|00003a90| 20 6d 61 64 65 2c 20 70 | 65 72 68 61 70 73 20 75 | made, p|erhaps u|
|00003aa0| 73 69 6e 67 20 41 64 64 | 44 65 66 65 72 72 65 64 |sing Add|Deferred|
|00003ab0| 41 63 74 69 6f 6e 2e 0d | 09 5f 5f 5f 5f 5f 5f 5f |Action..|._______|
|00003ac0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003ad0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003ae0| 5f 5f 5f 5f 0d 52 65 73 | 69 7a 69 6e 67 20 63 6c |____.Res|izing cl|
|00003af0| 50 61 72 61 67 72 61 70 | 68 56 69 65 77 20 28 31 |Paragrap|hView (1|
|00003b00| 31 2f 31 30 2f 39 33 29 | 0d 51 3a 09 49 20 77 6f |1/10/93)|.Q:.I wo|
|00003b10| 75 6c 64 20 6c 69 6b 65 | 20 74 6f 20 61 64 64 20 |uld like| to add |
|00003b20| 74 65 78 74 20 69 6e 74 | 6f 20 61 20 63 6c 50 61 |text int|o a clPa|
|00003b30| 72 61 67 72 61 70 68 56 | 69 65 77 20 61 6e 64 20 |ragraphV|iew and |
|00003b40| 74 68 65 6e 20 6c 61 74 | 65 72 20 68 61 76 65 20 |then lat|er have |
|00003b50| 74 68 65 20 68 65 69 67 | 68 74 20 6f 66 20 74 68 |the heig|ht of th|
|00003b60| 65 20 76 69 65 77 20 61 | 64 6a 75 73 74 65 64 20 |e view a|djusted |
|00003b70| 74 6f 20 73 68 6f 77 20 | 61 6c 6c 20 6f 66 20 74 |to show |all of t|
|00003b80| 68 65 20 74 65 78 74 2e | 20 48 6f 77 20 73 68 6f |he text.| How sho|
|00003b90| 75 6c 64 20 49 20 61 63 | 68 69 65 76 65 20 74 68 |uld I ac|hieve th|
|00003ba0| 69 73 3f 0d 41 3a 09 54 | 68 65 20 57 72 61 70 49 |is?.A:.T|he WrapI|
|00003bb0| 74 55 70 20 73 61 6d 70 | 6c 65 20 73 68 6f 77 73 |tUp samp|le shows|
|00003bc0| 20 68 6f 77 20 74 68 69 | 73 20 69 73 20 64 6f 6e | how thi|s is don|
|00003bd0| 65 2e 0d 09 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |e...____|________|
|00003be0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003bf0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 0d |________|_______.|
|00003c00| 4b 65 79 62 6f 61 72 64 | 20 49 63 6f 6e 20 50 6f |Keyboard| Icon Po|
|00003c10| 70 75 70 73 20 28 31 31 | 2f 31 31 2f 39 33 29 20 |pups (11|/11/93) |
|00003c20| 28 4f 62 73 6f 6c 65 74 | 65 64 20 62 79 20 31 2e |(Obsolet|ed by 1.|
|00003c30| 30 20 4e 65 77 74 6f 6e | 20 50 72 6f 67 72 61 6d |0 Newton| Program|
|00003c40| 6d 65 72 73 20 47 75 69 | 64 65 20 70 32 2d 31 30 |mers Gui|de p2-10|
|00003c50| 30 2c 31 30 33 29 0d 51 | 3a 20 09 49 20 77 61 6e |0,103).Q|: .I wan|
|00003c60| 74 20 74 6f 20 75 73 65 | 20 61 20 6b 65 79 62 6f |t to use| a keybo|
|00003c70| 61 72 64 20 69 63 6f 6e | 20 74 6f 20 70 6f 70 75 |ard icon| to popu|
|00003c80| 70 20 61 20 6b 65 79 62 | 6f 61 72 64 20 6c 69 6b |p a keyb|oard lik|
|00003c90| 65 20 69 6e 20 74 68 65 | 20 4e 6f 74 65 70 61 64 |e in the| Notepad|
|00003ca0| 2e 20 20 48 6f 77 20 64 | 6f 20 49 20 64 6f 20 74 |. How d|o I do t|
|00003cb0| 68 69 73 20 77 69 74 68 | 6f 75 74 20 68 61 76 69 |his with|out havi|
|00003cc0| 6e 67 20 74 6f 20 72 65 | 63 72 65 61 74 65 20 6d |ng to re|create m|
|00003cd0| 79 20 6f 77 6e 20 6b 65 | 79 62 6f 61 72 64 3f 20 |y own ke|yboard? |
|00003ce0| 20 49 20 6a 75 73 74 20 | 77 61 6e 74 20 74 6f 20 | I just |want to |
|00003cf0| 75 73 65 20 74 68 65 20 | 73 61 6d 65 20 6b 65 79 |use the |same key|
|00003d00| 62 6f 61 72 64 20 74 68 | 61 74 20 63 6f 6d 65 73 |board th|at comes|
|00003d10| 20 75 70 20 77 68 65 6e | 20 79 6f 75 20 64 6f 75 | up when| you dou|
|00003d20| 62 6c 65 20 74 61 70 20 | 69 6e 74 6f 20 74 68 65 |ble tap |into the|
|00003d30| 20 66 69 65 6c 64 2e 0d | 41 3a 20 09 49 6e 20 74 | field..|A: .In t|
|00003d40| 68 65 20 72 6f 6f 74 20 | 76 69 65 77 20 74 68 65 |he root |view the|
|00003d50| 72 65 20 61 72 65 20 66 | 6f 75 72 20 73 6c 6f 74 |re are f|our slot|
|00003d60| 73 20 63 61 6c 6c 65 64 | 20 27 61 6c 70 68 61 4b |s called| 'alphaK|
|00003d70| 65 79 62 6f 61 72 64 2c | 20 27 6e 75 6d 65 72 69 |eyboard,| 'numeri|
|00003d80| 63 4b 65 79 62 6f 61 72 | 64 2c 20 27 70 68 6f 6e |cKeyboar|d, 'phon|
|00003d90| 65 4b 65 79 62 6f 61 72 | 64 2c 20 27 64 61 74 65 |eKeyboar|d, 'date|
|00003da0| 4b 65 79 62 6f 61 72 64 | 2c 20 61 6e 64 20 65 61 |Keyboard|, and ea|
|00003db0| 63 68 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 76 69 |ch conta|ins a vi|
|00003dc0| 65 77 20 66 6f 72 20 74 | 68 61 74 20 6b 65 79 62 |ew for t|hat keyb|
|00003dd0| 6f 61 72 64 2e 20 20 55 | 73 65 20 53 65 74 4b 65 |oard. U|se SetKe|
|00003de0| 79 56 69 65 77 20 74 6f | 20 73 65 74 20 79 6f 75 |yView to| set you|
|00003df0| 72 20 76 69 65 77 20 61 | 73 20 74 68 65 20 6f 6e |r view a|s the on|
|00003e00| 65 20 74 68 61 74 20 67 | 65 74 73 20 6b 65 79 20 |e that g|ets key |
|00003e10| 65 76 65 6e 74 73 2c 20 | 74 68 65 6e 20 47 65 74 |events, |then Get|
|00003e20| 52 6f 6f 74 28 29 2e 61 | 6c 70 68 61 4b 65 79 62 |Root().a|lphaKeyb|
|00003e30| 6f 61 72 64 3a 4f 70 65 | 6e 28 29 2e 20 20 28 52 |oard:Ope|n(). (R|
|00003e40| 65 70 6c 61 63 65 20 61 | 6c 70 68 61 4b 65 79 62 |eplace a|lphaKeyb|
|00003e50| 6f 61 72 64 20 77 69 74 | 68 20 6f 6e 65 20 6f 66 |oard wit|h one of|
|00003e60| 20 74 68 65 20 6f 74 68 | 65 72 20 6b 65 79 62 6f | the oth|er keybo|
|00003e70| 61 72 64 73 20 69 66 20 | 61 70 70 72 6f 70 72 69 |ards if |appropri|
|00003e80| 61 74 65 2e 29 0d 09 59 | 6f 75 20 6d 69 67 68 74 |ate.)..Y|ou might|
|00003e90| 20 63 6f 6e 73 69 64 65 | 72 20 6c 6f 6f 70 69 6e | conside|r loopin|
|00003ea0| 67 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 6f 74 |g throug|h the ot|
|00003eb0| 68 65 72 20 74 68 72 65 | 65 20 6b 65 79 62 6f 61 |her thre|e keyboa|
|00003ec0| 72 64 73 20 61 6e 64 20 | 63 6c 6f 73 69 6e 67 20 |rds and |closing |
|00003ed0| 74 68 65 6d 20 69 66 20 | 74 68 65 79 27 72 65 20 |them if |they're |
|00003ee0| 61 6c 72 65 61 64 79 20 | 6f 70 65 6e 2e 20 20 28 |already |open. (|
|00003ef0| 54 68 65 20 62 75 69 6c | 74 20 69 6e 20 61 70 70 |The buil|t in app|
|00003f00| 6c 69 63 61 74 69 6f 6e | 73 20 64 6f 6e 27 74 20 |lication|s don't |
|00003f10| 64 6f 20 74 68 69 73 2c | 20 62 75 74 20 69 74 20 |do this,| but it |
|00003f20| 6c 6f 6f 6b 73 20 73 74 | 72 61 6e 67 65 20 74 6f |looks st|range to|
|00003f30| 20 6d 65 20 74 6f 20 68 | 61 76 65 20 6d 6f 72 65 | me to h|ave more|
|00003f40| 20 74 68 61 6e 20 6f 6e | 65 20 6b 65 79 62 6f 61 | than on|e keyboa|
|00003f50| 72 64 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |rd on th|e screen|
|00003f60| 2e 2e 2e 20 62 6f 74 68 | 20 6b 65 79 62 6f 61 72 |... both| keyboar|
|00003f70| 64 73 20 77 69 6c 6c 20 | 77 6f 72 6b 20 69 66 20 |ds will |work if |
|00003f80| 74 68 69 73 20 68 61 70 | 70 65 6e 73 2c 20 69 74 |this hap|pens, it|
|00003f90| 20 6a 75 73 74 20 6c 6f | 6f 6b 73 20 77 65 69 72 | just lo|oks weir|
|00003fa0| 64 2e 29 0d 09 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |d.)..___|________|
|00003fb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003fc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 4d 61 73 6b 69 6e |________|_.Maskin|
|00003fd0| 67 20 43 6c 69 63 6b 73 | 20 46 72 6f 6d 20 56 69 |g Clicks| From Vi|
|00003fe0| 65 77 73 20 28 31 31 2f | 31 31 2f 39 33 29 20 28 |ews (11/|11/93) (|
|00003ff0| 4f 62 73 6f 6c 65 74 65 | 64 20 62 79 20 4e 65 77 |Obsolete|d by New|
|00004000| 74 6f 6e 20 50 72 6f 67 | 72 61 6d 6d 65 72 73 20 |ton Prog|rammers |
|00004010| 47 75 69 64 65 2c 20 70 | 61 67 65 20 32 2d 31 35 |Guide, p|age 2-15|
|00004020| 20 61 6e 64 20 32 2d 31 | 36 29 0d 51 3a 20 09 57 | and 2-1|6).Q: .W|
|00004030| 68 65 6e 20 49 20 6f 70 | 65 6e 20 61 20 70 72 6f |hen I op|en a pro|
|00004040| 74 6f 46 6c 6f 61 74 4e | 47 6f 20 74 68 61 74 20 |toFloatN|Go that |
|00004050| 63 6f 76 65 72 73 20 73 | 6f 6d 65 20 6f 74 68 65 |covers s|ome othe|
|00004060| 72 20 70 69 63 74 75 72 | 65 20 62 75 74 74 6f 6e |r pictur|e button|
|00004070| 73 2c 20 74 68 65 20 62 | 75 74 74 6f 6e 73 20 73 |s, the b|uttons s|
|00004080| 74 69 6c 6c 20 67 65 74 | 20 63 6c 69 63 6b 20 6d |till get| click m|
|00004090| 65 73 73 61 67 65 73 20 | 69 66 20 49 20 68 61 70 |essages |if I hap|
|000040a0| 70 65 6e 20 74 6f 20 74 | 61 70 20 6f 6e 20 74 68 |pen to t|ap on th|
|000040b0| 65 20 63 6f 72 72 65 63 | 74 20 70 61 72 74 20 6f |e correc|t part o|
|000040c0| 66 20 74 68 65 20 70 72 | 6f 74 6f 46 6c 6f 61 74 |f the pr|otoFloat|
|000040d0| 4e 47 6f 2e 20 49 6e 20 | 6f 74 68 65 72 20 77 6f |NGo. In |other wo|
|000040e0| 72 64 73 2c 20 74 68 69 | 73 20 70 72 6f 74 6f 20 |rds, thi|s proto |
|000040f0| 61 6c 6c 6f 77 73 20 63 | 6c 69 63 6b 73 20 74 6f |allows c|licks to|
|00004100| 20 70 61 73 73 20 74 68 | 72 6f 75 67 68 2e 20 48 | pass th|rough. H|
|00004110| 6f 77 20 63 61 6e 20 49 | 20 63 6f 72 72 65 63 74 |ow can I| correct|
|00004120| 20 74 68 69 73 3f 0d 41 | 3a 20 09 59 6f 75 20 68 | this?.A|: .You h|
|00004130| 61 76 65 20 74 6f 20 73 | 65 74 20 74 68 65 20 76 |ave to s|et the v|
|00004140| 43 6c 69 63 6b 61 62 6c | 65 20 76 69 65 77 46 6c |Clickabl|e viewFl|
|00004150| 61 67 20 20 20 61 6e 64 | 20 70 72 6f 76 69 64 65 |ag and| provide|
|00004160| 20 61 20 76 69 65 77 43 | 6c 69 63 6b 53 63 72 69 | a viewC|lickScri|
|00004170| 70 74 20 74 68 61 74 20 | 72 65 74 75 72 6e 73 20 |pt that |returns |
|00004180| 4e 49 4c 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |NIL in o|rder to |
|00004190| 70 72 65 76 65 6e 74 20 | 61 20 76 69 65 77 20 66 |prevent |a view f|
|000041a0| 72 6f 6d 20 70 61 73 73 | 69 6e 67 20 63 6c 69 63 |rom pass|ing clic|
|000041b0| 6b 73 20 74 68 72 6f 75 | 67 68 20 74 6f 20 76 69 |ks throu|gh to vi|
|000041c0| 65 77 73 20 62 65 6e 65 | 61 74 68 20 69 74 2e 20 |ews bene|ath it. |
|000041d0| 20 53 65 65 20 74 68 65 | 20 56 69 65 77 73 20 51 | See the| Views Q|
|000041e0| 26 41 20 22 76 69 65 77 | 43 6c 69 63 6b 53 63 72 |&A "view|ClickScr|
|000041f0| 69 70 74 20 69 6e 68 65 | 72 69 74 61 6e 63 65 20 |ipt inhe|ritance |
|00004200| 61 6e 64 20 75 73 65 72 | 20 69 6e 70 75 74 22 20 |and user| input" |
|00004210| 66 6f 72 20 73 6f 6d 65 | 20 70 6f 73 73 69 62 6c |for some| possibl|
|00004220| 65 20 70 72 6f 62 6c 65 | 6d 73 20 61 6e 64 20 74 |e proble|ms and t|
|00004230| 68 65 20 77 6f 72 6b 61 | 72 6f 75 6e 64 2e 0d 09 |he worka|round...|
|00004240| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004250| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004260| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 63 6c 4d 61 |________|___.clMa|
|00004270| 74 68 45 78 70 56 69 65 | 77 2c 20 63 6c 4d 61 74 |thExpVie|w, clMat|
|00004280| 68 4f 70 56 69 65 77 20 | 61 6e 64 20 63 6c 4d 61 |hOpView |and clMa|
|00004290| 74 68 4c 69 6e 65 56 69 | 65 77 3f 20 28 31 31 2f |thLineVi|ew? (11/|
|000042a0| 31 32 2f 39 33 29 0d 51 | 3a 20 09 49 20 66 6f 75 |12/93).Q|: .I fou|
|000042b0| 6e 64 20 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |nd the |followin|
|000042c0| 67 20 76 69 65 77 20 63 | 6c 61 73 73 20 64 65 66 |g view c|lass def|
|000042d0| 69 6e 69 74 69 6f 6e 73 | 20 69 6e 20 74 68 65 20 |initions| in the |
|000042e0| 4e 54 4b 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 66 |NTK defi|nition f|
|000042f0| 69 6c 65 3a 20 63 6c 4d | 61 74 68 45 78 70 56 69 |ile: clM|athExpVi|
|00004300| 65 77 2c 20 63 6c 4d 61 | 74 68 4f 70 56 69 65 77 |ew, clMa|thOpView|
|00004310| 2c 20 61 6e 64 20 63 6c | 4d 61 74 68 4c 69 6e 65 |, and cl|MathLine|
|00004320| 56 69 65 77 2e 20 20 57 | 68 61 74 20 61 72 65 20 |View. W|hat are |
|00004330| 74 68 65 79 3f 20 20 41 | 72 65 20 74 68 65 73 65 |they? A|re these|
|00004340| 20 70 72 69 76 61 74 65 | 20 76 69 65 77 20 63 6c | private| view cl|
|00004350| 61 73 73 65 73 2c 20 6f | 72 20 63 61 6e 20 49 20 |asses, o|r can I |
|00004360| 75 73 65 20 74 68 65 6d | 3f 0d 41 3a 20 09 43 75 |use them|?.A: .Cu|
|00004370| 72 72 65 6e 74 6c 79 20 | 74 68 65 73 65 20 76 69 |rrently |these vi|
|00004380| 65 77 20 63 6c 61 73 73 | 65 73 20 61 72 65 20 75 |ew class|es are u|
|00004390| 6e 73 75 70 70 6f 72 74 | 65 64 2c 20 61 6e 64 20 |nsupport|ed, and |
|000043a0| 44 54 53 20 64 6f 65 73 | 20 6e 6f 74 20 6d 61 6b |DTS does| not mak|
|000043b0| 65 20 61 6e 79 20 67 75 | 61 72 61 6e 74 65 65 20 |e any gu|arantee |
|000043c0| 74 68 61 74 20 74 68 65 | 79 20 77 69 6c 6c 20 77 |that the|y will w|
|000043d0| 6f 72 6b 20 70 72 6f 70 | 65 72 6c 79 20 77 69 74 |ork prop|erly wit|
|000043e0| 68 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 4e 65 |h the cu|rrent Ne|
|000043f0| 77 74 6f 6e 20 70 6c 61 | 74 66 6f 72 6d 73 2e 20 |wton pla|tforms. |
|00004400| 57 65 20 77 69 6c 6c 20 | 70 72 6f 76 69 64 65 20 |We will |provide |
|00004410| 6d 6f 72 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |more inf|ormation|
|00004420| 20 61 62 6f 75 74 20 74 | 68 65 73 65 20 63 6c 61 | about t|hese cla|
|00004430| 73 73 65 73 20 77 68 65 | 6e 20 74 68 65 79 20 61 |sses whe|n they a|
|00004440| 72 65 20 73 75 70 70 6f | 72 74 65 64 2e 0d 09 5f |re suppo|rted..._|
|00004450| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004460| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004470| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 0d 76 66 50 65 6e |________|__.vfPen|
|00004480| 20 61 6e 64 20 76 66 49 | 6e 73 65 74 20 2d 2d 20 | and vfI|nset -- |
|00004490| 43 6f 6d 70 69 6c 65 20 | 54 69 6d 65 20 4f 6e 6c |Compile |Time Onl|
|000044a0| 79 20 46 75 6e 63 74 69 | 6f 6e 73 20 28 31 31 2f |y Functi|ons (11/|
|000044b0| 31 35 2f 39 33 29 0d 51 | 3a 09 48 6f 77 20 64 6f |15/93).Q|:.How do|
|000044c0| 20 49 20 6d 61 6b 65 20 | 76 66 50 65 6e 28 78 29 | I make |vfPen(x)|
|000044d0| 20 61 6e 64 20 76 66 49 | 6e 73 65 74 28 78 29 20 | and vfI|nset(x) |
|000044e0| 77 6f 72 6b 3f 20 49 20 | 6b 65 65 70 20 67 65 74 |work? I |keep get|
|000044f0| 74 69 6e 67 20 27 75 6e | 64 65 66 69 6e 65 64 20 |ting 'un|defined |
|00004500| 67 6c 6f 62 61 6c 20 66 | 75 6e 63 74 69 6f 6e 27 |global f|unction'|
|00004510| 20 65 78 63 65 70 74 69 | 6f 6e 73 2e 0d 41 3a 09 | excepti|ons..A:.|
|00004520| 54 68 65 73 65 20 61 72 | 65 20 63 6f 6d 70 69 6c |These ar|e compil|
|00004530| 65 20 74 69 6d 65 20 6f | 6e 6c 79 20 66 75 6e 63 |e time o|nly func|
|00004540| 74 69 6f 6e 73 2e 20 54 | 68 65 79 20 77 6f 72 6b |tions. T|hey work|
|00004550| 20 69 66 20 79 6f 75 20 | 75 73 65 20 74 68 65 6d | if you |use them|
|00004560| 20 69 6e 73 69 64 65 20 | 61 6e 20 45 76 61 6c 20 | inside |an Eval |
|00004570| 73 6c 6f 74 2c 20 62 75 | 74 20 79 6f 75 20 63 61 |slot, bu|t you ca|
|00004580| 6e 27 74 20 75 73 65 20 | 74 68 65 6d 20 69 6e 20 |n't use |them in |
|00004590| 73 63 72 69 70 74 73 20 | 64 75 72 69 6e 67 20 72 |scripts |during r|
|000045a0| 75 6e 20 74 69 6d 65 2e | 0d 09 50 61 67 65 20 32 |un time.|..Page 2|
|000045b0| 2d 33 31 20 69 6e 20 74 | 68 65 20 4e 65 77 74 6f |-31 in t|he Newto|
|000045c0| 6e 20 50 72 6f 67 72 61 | 6d 6d 65 72 73 20 47 75 |n Progra|mmers Gu|
|000045d0| 69 64 65 20 74 61 6c 6b | 73 20 61 62 6f 75 74 20 |ide talk|s about |
|000045e0| 74 68 65 20 76 66 50 65 | 6e 20 76 61 6c 75 65 73 |the vfPe|n values|
|000045f0| 20 79 6f 75 20 67 65 74 | 2e 20 49 66 20 79 6f 75 | you get|. If you|
|00004600| 20 77 61 6e 74 20 74 6f | 20 73 65 74 20 74 68 65 | want to| set the|
|00004610| 20 70 65 6e 20 73 69 7a | 65 20 66 6f 72 20 61 20 | pen siz|e for a |
|00004620| 73 68 61 70 65 2c 20 49 | 20 77 6f 75 6c 64 20 73 |shape, I| would s|
|00004630| 75 67 67 65 73 74 20 75 | 73 69 6e 67 20 20 74 68 |uggest u|sing th|
|00004640| 65 20 70 65 6e 73 69 7a | 65 20 73 6c 6f 74 20 6f |e pensiz|e slot o|
|00004650| 66 20 74 68 65 20 73 74 | 79 6c 65 46 72 61 6d 65 |f the st|yleFrame|
|00004660| 2e 20 49 6e 20 74 68 65 | 20 63 61 73 65 20 6f 66 |. In the| case of|
|00004670| 20 70 65 6e 20 73 69 7a | 65 73 20 66 6f 72 20 76 | pen siz|es for v|
|00004680| 69 65 77 73 2c 20 74 68 | 65 20 70 65 6e 20 74 68 |iews, th|e pen th|
|00004690| 69 63 6b 6e 65 73 73 20 | 69 73 20 4e 20 70 69 78 |ickness |is N pix|
|000046a0| 65 6c 73 20 2a 20 32 35 | 36 2e 20 28 53 65 65 20 |els * 25|6. (See |
|000046b0| 74 68 65 20 56 69 65 77 | 20 63 68 61 70 74 65 72 |the View| chapter|
|000046c0| 20 66 6f 72 20 6d 6f 72 | 65 20 64 65 74 61 69 6c | for mor|e detail|
|000046d0| 73 20 6f 66 20 68 6f 77 | 20 74 6f 20 63 72 65 61 |s of how| to crea|
|000046e0| 74 65 20 76 61 6c 75 65 | 73 20 66 6f 72 20 74 68 |te value|s for th|
|000046f0| 65 20 76 69 65 77 20 73 | 6c 6f 74 73 29 2e 0d 09 |e view s|lots)...|
|00004700| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004710| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004720| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 49 63 6f 6e |________|___.Icon|
|00004730| 20 41 6e 69 6d 61 74 69 | 6f 6e 20 28 31 32 2f 31 | Animati|on (12/1|
|00004740| 39 2f 39 33 29 0d 51 3a | 09 49 73 20 74 68 65 72 |9/93).Q:|.Is ther|
|00004750| 65 20 61 6e 20 65 6c 65 | 67 61 6e 74 20 77 61 79 |e an ele|gant way|
|00004760| 20 74 6f 20 61 6e 69 6d | 61 74 65 20 69 63 6f 6e | to anim|ate icon|
|00004770| 73 20 69 6e 20 74 68 65 | 20 45 78 74 72 61 73 20 |s in the| Extras |
|00004780| 66 6f 6c 64 65 72 20 6f | 6e 20 73 74 61 72 74 75 |folder o|n startu|
|00004790| 70 2c 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |p, the s|ame way |
|000047a0| 74 68 65 20 69 6e 62 6f | 78 20 61 6e 64 20 6f 75 |the inbo|x and ou|
|000047b0| 74 62 6f 78 20 69 63 6f | 6e 73 20 6f 70 65 72 61 |tbox ico|ns opera|
|000047c0| 74 65 3f 0d 41 3a 09 59 | 6f 75 20 6e 65 65 64 20 |te?.A:.Y|ou need |
|000047d0| 74 6f 20 63 72 65 61 74 | 65 20 61 20 6d 61 73 6b |to creat|e a mask|
|000047e0| 20 66 6f 72 20 74 68 65 | 20 69 63 6f 6e 2c 20 73 | for the| icon, s|
|000047f0| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 65 20 77 61 |imilar t|o the wa|
|00004800| 79 20 49 43 4e 23 20 72 | 65 73 6f 75 72 63 65 73 |y ICN# r|esources|
|00004810| 20 77 6f 72 6b 20 6f 6e | 20 74 68 65 20 4d 61 63 | work on| the Mac|
|00004820| 69 6e 74 6f 73 68 2e 20 | 54 68 69 73 20 61 6c 74 |intosh. |This alt|
|00004830| 65 72 6e 61 74 65 20 69 | 63 6f 6e 20 69 73 20 61 |ernate i|con is a|
|00004840| 6c 73 6f 20 61 20 50 49 | 43 54 20 28 73 75 63 68 |lso a PI|CT (such|
|00004850| 20 61 73 20 74 68 65 20 | 69 63 6f 6e 20 72 65 73 | as the |icon res|
|00004860| 6f 75 72 63 65 20 69 74 | 73 65 6c 66 29 2e 20 54 |ource it|self). T|
|00004870| 68 69 73 20 50 49 43 54 | 20 73 68 6f 75 6c 64 20 |his PICT| should |
|00004880| 62 65 20 70 6c 61 63 65 | 64 20 69 6e 20 74 68 65 |be place|d in the|
|00004890| 20 73 61 6d 65 20 66 69 | 6c 65 20 61 73 20 74 68 | same fi|le as th|
|000048a0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 63 |e applic|ation ic|
|000048b0| 6f 6e 20 28 75 73 69 6e | 67 20 52 65 73 45 64 69 |on (usin|g ResEdi|
|000048c0| 74 20 66 6f 72 20 69 6e | 73 74 61 6e 63 65 29 2c |t for in|stance),|
|000048d0| 20 61 6e 64 20 74 68 65 | 20 50 49 43 54 20 73 68 | and the| PICT sh|
|000048e0| 6f 75 6c 64 20 68 61 76 | 65 20 74 68 65 20 73 61 |ould hav|e the sa|
|000048f0| 6d 65 20 6e 61 6d 65 20 | 61 73 20 74 68 65 20 61 |me name |as the a|
|00004900| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 63 6f 6e 20 |pplicati|on icon |
|00004910| 77 69 74 68 20 74 68 65 | 20 65 78 63 65 70 74 69 |with the| excepti|
|00004920| 6f 6e 20 74 68 61 74 20 | 61 20 21 20 63 68 61 72 |on that |a ! char|
|00004930| 61 63 74 65 72 20 73 68 | 6f 75 6c 64 20 62 65 20 |acter sh|ould be |
|00004940| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00004950| 20 6f 72 20 65 6e 64 20 | 6f 66 20 74 68 65 20 66 | or end |of the f|
|00004960| 69 6c 65 20 6e 61 6d 65 | 20 28 6d 79 49 63 6f 6e |ile name| (myIcon|
|00004970| 20 61 6e 64 20 21 6d 79 | 49 63 6f 6e 29 2e 0d 09 | and !my|Icon)...|
|00004980| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00004990| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000049a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 0d 54 65 78 74 |________|___.Text|
|000049b0| 43 68 61 6e 67 65 64 20 | 4d 65 74 68 6f 64 20 61 |Changed |Method a|
|000049c0| 6e 64 20 4b 65 79 62 6f | 61 72 64 73 20 28 31 32 |nd Keybo|ards (12|
|000049d0| 2f 31 39 2f 39 33 29 0d | 51 3a 09 57 68 79 20 69 |/19/93).|Q:.Why i|
|000049e0| 73 20 74 68 65 20 74 65 | 78 74 43 68 61 6e 67 65 |s the te|xtChange|
|000049f0| 64 20 6d 65 74 68 6f 64 | 20 6f 66 20 61 20 66 69 |d method| of a fi|
|00004a00| 65 6c 64 20 63 61 6c 6c | 65 64 20 65 76 65 72 79 |eld call|ed every|
|00004a10| 20 6b 65 79 50 72 65 73 | 73 20 6f 6e 20 74 68 65 | keyPres|s on the|
|00004a20| 20 6b 65 79 70 61 64 73 | 3f 20 49 20 64 6f 6e 27 | keypads|? I don'|
|00004a30| 74 20 77 61 6e 74 20 74 | 6f 20 6b 6e 6f 77 20 77 |t want t|o know w|
|00004a40| 68 61 74 20 74 68 65 20 | 75 73 65 72 20 69 73 20 |hat the |user is |
|00004a50| 74 79 70 69 6e 67 20 75 | 6e 74 69 6c 20 74 68 65 |typing u|ntil the|
|00004a60| 20 75 73 65 72 20 69 73 | 20 64 6f 6e 65 20 28 63 | user is| done (c|
|00004a70| 6c 6f 73 65 64 20 74 68 | 65 20 6b 65 79 62 6f 61 |losed th|e keyboa|
|00004a80| 72 64 29 2e 20 41 72 65 | 20 74 68 65 72 65 20 61 |rd). Are| there a|
|00004a90| 6e 79 20 77 6f 72 6b 61 | 72 6f 75 6e 64 73 3f 0d |ny worka|rounds?.|
|00004aa0| 41 3a 09 54 68 69 73 20 | 69 73 20 6e 6f 74 20 61 |A:.This |is not a|
|00004ab0| 63 63 65 70 74 61 62 6c | 65 20 75 73 65 72 20 69 |cceptabl|e user i|
|00004ac0| 6e 74 65 72 66 61 63 65 | 20 64 65 73 69 67 6e 20 |nterface| design |
|00004ad0| 62 65 63 61 75 73 65 20 | 74 68 65 20 75 73 65 72 |because |the user|
|00004ae0| 20 64 6f 65 73 20 6e 6f | 74 20 65 76 65 72 20 6e | does no|t ever n|
|00004af0| 65 65 64 20 74 6f 20 63 | 6c 6f 73 65 20 74 68 65 |eed to c|lose the|
|00004b00| 20 6b 65 79 62 6f 61 72 | 64 2e 20 54 68 65 20 75 | keyboar|d. The u|
|00004b10| 73 65 72 20 69 73 20 61 | 6c 6c 6f 77 65 64 20 74 |ser is a|llowed t|
|00004b20| 6f 20 6b 65 65 70 20 74 | 68 65 20 6b 65 79 62 6f |o keep t|he keybo|
|00004b30| 61 72 64 20 6f 70 65 6e | 2c 20 68 61 76 65 20 73 |ard open|, have s|
|00004b40| 65 76 65 72 61 6c 20 6b | 65 79 62 6f 61 72 64 73 |everal k|eyboards|
|00004b50| 20 6f 70 65 6e 20 28 79 | 65 73 2c 20 74 68 69 73 | open (y|es, this|
|00004b60| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 29 2c 20 61 | is poss|ible), a|
|00004b70| 6e 64 20 74 6f 20 64 6f | 20 6f 74 68 65 72 20 61 |nd to do| other a|
|00004b80| 63 74 69 6f 6e 73 20 74 | 6f 20 61 20 66 69 65 6c |ctions t|o a fiel|
|00004b90| 64 20 64 75 72 69 6e 67 | 20 74 79 70 69 6e 67 2c |d during| typing,|
|00004ba0| 20 73 75 63 68 20 61 73 | 20 64 72 61 67 67 69 6e | such as| draggin|
|00004bb0| 67 20 73 6f 6d 65 74 68 | 69 6e 67 20 66 72 6f 6d |g someth|ing from|
|00004bc0| 20 74 68 65 20 63 6c 69 | 70 62 6f 61 72 64 2e 0d | the cli|pboard..|
|00004bd0| 09 53 69 6e 63 65 20 74 | 68 65 20 6f 6e 2d 73 63 |.Since t|he on-sc|
|00004be0| 72 65 65 6e 20 6b 65 79 | 62 6f 61 72 64 73 20 61 |reen key|boards a|
|00004bf0| 72 65 20 6e 6f 74 20 64 | 79 6e 61 6d 69 63 20 61 |re not d|ynamic a|
|00004c00| 6e 64 20 6e 6f 74 20 6d | 6f 64 61 6c 2c 20 74 72 |nd not m|odal, tr|
|00004c10| 61 63 6b 69 6e 67 20 74 | 68 65 20 61 63 74 69 6f |acking t|he actio|
|00004c20| 6e 73 20 6f 66 20 74 68 | 65 20 6b 65 79 62 6f 61 |ns of th|e keyboa|
|00004c30| 72 64 20 6f 74 68 65 72 | 20 74 68 61 6e 20 74 79 |rd other| than ty|
|00004c40| 70 69 6e 67 20 69 73 20 | 6e 6f 74 20 73 75 70 70 |ping is |not supp|
|00004c50| 6f 72 74 65 64 2e 0d 09 | 59 6f 75 20 63 6f 75 6c |orted...|You coul|
|00004c60| 64 20 74 68 65 6f 72 65 | 74 69 63 61 6c 6c 79 20 |d theore|tically |
|00004c70| 63 72 65 61 74 65 20 79 | 6f 75 72 20 6f 77 6e 20 |create y|our own |
|00004c80| 6b 65 79 62 6f 61 72 64 | 20 77 69 6e 64 6f 77 2c |keyboard| window,|
|00004c90| 20 62 75 74 20 74 68 69 | 73 20 77 6f 75 6c 64 20 | but thi|s would |
|00004ca0| 6e 6f 74 20 68 61 6e 64 | 6c 65 20 47 65 72 6d 61 |not hand|le Germa|
|00004cb0| 6e 20 73 79 73 74 65 6d | 73 2c 20 61 6e 64 20 79 |n system|s, and y|
|00004cc0| 6f 75 20 77 6f 75 6c 64 | 20 6e 65 65 64 20 74 6f |ou would| need to|
|00004cd0| 20 62 75 69 6c 64 20 69 | 6e 20 61 20 6c 6f 74 20 | build i|n a lot |
|00004ce0| 6f 66 20 64 69 63 74 69 | 6f 6e 61 72 79 20 66 65 |of dicti|onary fe|
|00004cf0| 61 74 75 72 65 73 2e 0d | 09 4f 74 68 65 72 77 69 |atures..|.Otherwi|
|00004d00| 73 65 2c 20 75 6e 66 6f | 72 74 75 6e 61 74 65 6c |se, unfo|rtunatel|
|00004d10| 79 2c 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 77 |y, there| is no w|
|00004d20| 6f 72 6b 61 72 6f 75 6e | 64 20 66 6f 72 20 74 68 |orkaroun|d for th|
|00004d30| 69 73 20 62 65 68 61 76 | 69 6f 72 2e 20 4f 6e 65 |is behav|ior. One|
|00004d40| 20 73 75 67 67 65 73 74 | 69 6f 6e 20 69 73 20 74 | suggest|ion is t|
|00004d50| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 64 65 73 |o change| the des|
|00004d60| 69 67 6e 2c 20 73 6f 20 | 74 68 61 74 20 79 6f 75 |ign, so |that you|
|00004d70| 20 61 73 73 75 6d 65 20 | 74 68 61 74 20 74 65 78 | assume |that tex|
|00004d80| 74 20 63 61 6e 20 63 68 | 61 6e 67 65 20 6f 66 74 |t can ch|ange oft|
|00004d90| 65 6e 20 61 6e 64 20 74 | 68 72 6f 75 67 68 20 6d |en and t|hrough m|
|00004da0| 61 6e 79 20 69 6e 70 75 | 74 20 6d 65 74 68 6f 64 |any inpu|t method|
|00004db0| 73 20 28 64 72 61 67 67 | 69 6e 67 2c 20 74 79 70 |s (dragg|ing, typ|
|00004dc0| 69 6e 67 2c 72 65 63 6f | 67 6e 69 74 69 6f 6e 29 |ing,reco|gnition)|
|00004dd0| 2e 20 50 65 72 68 61 70 | 73 20 79 6f 75 20 63 6f |. Perhap|s you co|
|00004de0| 75 6c 64 20 69 6d 70 6c | 65 6d 65 6e 74 20 61 20 |uld impl|ement a |
|00004df0| 27 44 6f 20 43 61 6c 63 | 75 6c 61 74 69 6f 6e 27 |'Do Calc|ulation'|
|00004e00| 20 62 75 74 74 6f 6e 20 | 6f 72 20 73 6f 6d 65 74 | button |or somet|
|00004e10| 68 69 6e 67 20 73 69 6d | 69 6c 61 72 2c 20 69 6e |hing sim|ilar, in|
|00004e20| 20 6f 72 64 65 72 20 6e | 6f 74 20 74 6f 20 73 75 | order n|ot to su|
|00004e30| 72 70 72 69 73 65 20 74 | 68 65 20 75 73 65 72 20 |rprise t|he user |
|00004e40| 69 6e 20 63 61 73 65 73 | 20 77 68 65 72 65 20 79 |in cases| where y|
|00004e50| 6f 75 20 63 68 61 6e 67 | 65 20 74 68 69 6e 67 73 |ou chang|e things|
|00004e60| 20 62 61 73 65 64 20 6f | 6e 20 74 68 65 20 69 6e | based o|n the in|
|00004e70| 70 75 74 2e 0d 09 49 66 | 20 79 6f 75 72 20 74 65 |put...If| your te|
|00004e80| 78 74 43 68 61 6e 67 65 | 64 20 6d 65 74 68 6f 64 |xtChange|d method|
|00004e90| 20 69 73 20 73 6c 6f 77 | 2c 20 79 6f 75 20 63 6f | is slow|, you co|
|00004ea0| 75 6c 64 20 73 65 74 20 | 61 20 66 6c 61 67 20 74 |uld set |a flag t|
|00004eb0| 72 75 65 20 69 6e 20 79 | 6f 75 72 20 74 65 78 74 |rue in y|our text|
|00004ec0| 43 68 61 6e 67 65 64 20 | 6d 65 74 68 6f 64 2c 20 |Changed |method, |
|00004ed0| 61 6e 64 20 64 75 72 69 | 6e 67 20 61 6e 20 69 64 |and duri|ng an id|
|00004ee0| 6c 65 53 63 72 69 70 74 | 20 79 6f 75 20 63 6f 75 |leScript| you cou|
|00004ef0| 6c 64 20 64 6f 20 77 68 | 61 74 65 76 65 72 20 79 |ld do wh|atever y|
|00004f00| 6f 75 20 77 61 6e 74 2e | 20 49 66 20 79 6f 75 20 |ou want.| If you |
|00004f10| 75 73 65 20 74 68 69 73 | 20 73 6f 6c 75 74 69 6f |use this| solutio|
|00004f20| 6e 2c 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 61 |n, make |sure tha|
|00004f30| 74 20 79 6f 75 20 74 65 | 72 6d 69 6e 61 74 65 20 |t you te|rminate |
|00004f40| 74 68 65 20 69 64 6c 65 | 53 63 72 69 70 74 20 61 |the idle|Script a|
|00004f50| 74 20 74 68 65 20 65 61 | 72 6c 69 65 73 74 20 70 |t the ea|rliest p|
|00004f60| 6f 73 73 69 62 6c 65 20 | 73 74 61 67 65 2c 20 69 |ossible |stage, i|
|00004f70| 6e 20 6f 72 64 65 72 20 | 74 6f 20 73 61 76 65 20 |n order |to save |
|00004f80| 62 61 74 74 65 72 69 65 | 73 2e 20 54 68 65 20 73 |batterie|s. The s|
|00004f90| 61 6d 65 20 67 6f 65 73 | 20 66 6f 72 20 69 6e 69 |ame goes| for ini|
|00004fa0| 74 69 61 6c 69 7a 69 6e | 67 20 74 68 65 20 69 64 |tializin|g the id|
|00004fb0| 6c 65 20 73 63 72 69 70 | 74 3b 20 20 6a 75 73 74 |le scrip|t; just|
|00004fc0| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 69 74 20 62 | initial|ize it b|
|00004fd0| 65 66 6f 72 65 20 79 6f | 75 20 6e 65 65 64 20 74 |efore yo|u need t|
|00004fe0| 68 69 73 20 6f 6e 65 20 | 74 6f 20 63 68 65 63 6b |his one |to check|
|00004ff0| 20 74 68 65 20 66 6c 61 | 67 73 2e 0d 09 5f 5f 5f | the fla|gs...___|
|00005000| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005010| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005020| 5f 5f 5f 5f 5f 5f 5f 5f | 0d 4b 65 79 49 6e 20 28 |________|.KeyIn (|
|00005030| 31 32 2f 32 33 2f 39 33 | 29 0d 51 3a 20 09 48 6f |12/23/93|).Q: .Ho|
|00005040| 77 20 63 61 6e 20 49 20 | 6f 70 65 6e 20 74 68 65 |w can I |open the|
|00005050| 20 6b 65 79 62 6f 61 72 | 64 20 76 69 65 77 20 77 | keyboar|d view w|
|00005060| 69 74 68 20 74 68 65 20 | 4f 70 74 69 6f 6e 20 6b |ith the |Option k|
|00005070| 65 79 20 64 6f 77 6e 3f | 0d 41 3a 09 55 73 65 20 |ey down?|.A:.Use |
|00005080| 74 68 65 20 67 6c 6f 62 | 61 6c 20 66 75 6e 63 74 |the glob|al funct|
|00005090| 69 6f 6e 20 4b 65 79 49 | 6e 28 6b 65 79 43 6f 64 |ion KeyI|n(keyCod|
|000050a0| 65 2c 20 73 74 61 74 65 | 29 2e 20 20 6b 65 79 43 |e, state|). keyC|
|000050b0| 6f 64 65 20 69 73 20 61 | 20 76 61 6c 75 65 20 72 |ode is a| value r|
|000050c0| 65 70 72 65 73 65 6e 74 | 69 6e 67 20 74 68 65 20 |epresent|ing the |
|000050d0| 2a 70 68 79 73 69 63 61 | 6c 2a 20 6b 65 79 20 74 |*physica|l* key t|
|000050e0| 6f 20 70 72 65 73 73 2c | 20 73 74 61 74 65 20 69 |o press,| state i|
|000050f0| 73 20 61 20 20 42 6f 6f | 6c 65 61 6e 2c 20 54 52 |s a Boo|lean, TR|
|00005100| 55 45 20 66 6f 72 20 64 | 6f 77 6e 2c 20 4e 49 4c |UE for d|own, NIL|
|00005110| 20 66 6f 72 20 75 70 2e | 20 20 53 6f 6d 65 20 75 | for up.| Some u|
|00005120| 73 65 66 75 6c 20 6b 65 | 79 63 6f 64 65 73 3a 20 |seful ke|ycodes: |
|00005130| 4f 70 74 69 6f 6e 20 69 | 20 73 30 78 33 41 2c 20 |Option i| s0x3A, |
|00005140| 53 68 69 66 74 20 69 73 | 20 30 78 33 38 2c 20 61 |Shift is| 0x38, a|
|00005150| 6e 64 20 43 61 70 73 20 | 4c 6f 63 6b 20 69 73 20 |nd Caps |Lock is |
|00005160| 30 78 33 39 2e 20 20 59 | 6f 75 20 6d 61 79 20 6e |0x39. Y|ou may n|
|00005170| 65 65 64 20 74 6f 20 73 | 65 6e 64 20 61 20 44 69 |eed to s|end a Di|
|00005180| 72 74 79 20 20 6d 65 73 | 73 61 67 65 20 74 6f 20 |rty mes|sage to |
|00005190| 47 65 74 52 6f 6f 74 28 | 29 2e 61 6c 70 68 61 4b |GetRoot(|).alphaK|
|000051a0| 65 79 62 6f 61 72 64 2e | 0d 09 5f 5f 5f 5f 5f 5f |eyboard.|..______|
|000051b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000051c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000051d0| 5f 5f 5f 5f 5f 0d 43 75 | 73 74 6f 6d 20 46 69 6c |_____.Cu|stom Fil|
|000051e0| 6c 73 20 28 31 2f 34 2f | 39 34 29 20 28 4f 62 73 |ls (1/4/|94) (Obs|
|000051f0| 6f 6c 65 74 65 64 20 62 | 79 20 31 2e 30 20 4e 65 |oleted b|y 1.0 Ne|
|00005200| 77 74 6f 6e 20 50 72 6f | 67 72 61 6d 6d 65 72 73 |wton Pro|grammers|
|00005210| 20 47 75 69 64 65 20 70 | 32 2d 33 32 29 0d 51 3a | Guide p|2-32).Q:|
|00005220| 09 57 68 65 6e 2c 20 68 | 6f 77 2c 20 61 6e 64 20 |.When, h|ow, and |
|00005230| 77 68 65 72 65 20 64 6f | 20 49 20 73 65 74 20 74 |where do| I set t|
|00005240| 68 65 20 76 69 65 77 46 | 69 6c 6c 50 61 74 74 65 |he viewF|illPatte|
|00005250| 72 6e 20 73 6c 6f 74 20 | 73 6f 20 74 68 61 74 20 |rn slot |so that |
|00005260| 49 20 63 61 6e 20 68 61 | 76 65 20 61 20 63 75 73 |I can ha|ve a cus|
|00005270| 74 6f 6d 20 66 69 6c 6c | 20 70 61 74 74 65 72 6e |tom fill| pattern|
|00005280| 20 69 6e 20 6d 79 20 76 | 69 65 77 3f 0d 41 3a 20 | in my v|iew?.A: |
|00005290| 09 54 68 65 20 76 69 65 | 77 46 69 6c 6c 50 61 74 |.The vie|wFillPat|
|000052a0| 74 65 72 6e 20 73 68 6f | 75 6c 64 20 6a 75 73 74 |tern sho|uld just|
|000052b0| 20 62 65 20 61 20 73 6c | 6f 74 20 69 6e 20 74 68 | be a sl|ot in th|
|000052c0| 65 20 76 69 65 77 20 69 | 74 73 65 6c 66 2e 20 20 |e view i|tself. |
|000052d0| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 77 6f |The foll|owing wo|
|000052e0| 72 6b 73 20 69 6e 20 61 | 6e 20 65 76 61 6c 75 61 |rks in a|n evalua|
|000052f0| 74 65 20 73 6c 6f 74 20 | 66 6f 72 20 68 6f 72 69 |te slot |for hori|
|00005300| 7a 6f 6e 74 61 6c 20 73 | 74 72 69 70 65 73 20 28 |zontal s|tripes (|
|00005310| 76 65 72 79 20 75 67 6c | 79 29 3a 0d 20 20 20 20 |very ugl|y):. |
|00005320| 09 09 53 65 74 4c 65 6e | 67 74 68 28 53 65 74 43 |..SetLen|gth(SetC|
|00005330| 6c 61 73 73 28 22 5c 75 | 30 30 46 46 30 30 46 46 |lass("\u|00FF00FF|
|00005340| 30 30 46 46 30 30 46 46 | 22 2c 20 27 70 61 74 74 |00FF00FF|", 'patt|
|00005350| 65 72 6e 29 2c 20 38 29 | 3b 0d 09 59 6f 75 20 63 |ern), 8)|;..You c|
|00005360| 6f 75 6c 64 20 61 6c 73 | 6f 20 67 65 74 20 74 68 |ould als|o get th|
|00005370| 65 20 70 61 74 74 65 72 | 6e 20 6f 75 74 20 6f 66 |e patter|n out of|
|00005380| 20 61 20 72 65 73 6f 75 | 72 63 65 2e 0d 09 54 68 | a resou|rce...Th|
|00005390| 65 72 65 20 69 73 20 61 | 20 70 72 6f 62 6c 65 6d |ere is a| problem|
|000053a0| 20 77 69 74 68 20 74 68 | 65 20 4e 54 4b 20 31 2e | with th|e NTK 1.|
|000053b0| 30 62 37 20 76 69 65 77 | 46 6f 72 6d 61 74 20 73 |0b7 view|Format s|
|000053c0| 6c 6f 74 20 65 64 69 74 | 6f 72 3b 20 69 74 20 64 |lot edit|or; it d|
|000053d0| 6f 65 73 20 6e 6f 74 20 | 70 72 6f 70 65 72 6c 79 |oes not |properly|
|000053e0| 20 73 65 74 20 74 68 65 | 20 76 66 46 69 6c 6c 43 | set the| vfFillC|
|000053f0| 75 73 74 6f 6d 20 66 6c | 61 67 2e 20 20 54 6f 20 |ustom fl|ag. To |
|00005400| 77 6f 72 6b 20 61 72 6f | 75 6e 64 20 74 68 69 73 |work aro|und this|
|00005410| 2c 20 79 6f 75 27 6c 6c | 20 68 61 76 65 20 74 6f |, you'll| have to|
|00005420| 20 73 65 74 20 74 68 65 | 20 76 69 65 77 46 6f 72 | set the| viewFor|
|00005430| 6d 61 74 20 73 6c 6f 74 | 20 69 6e 20 61 6e 20 41 |mat slot| in an A|
|00005440| 66 74 65 72 53 63 72 69 | 70 74 20 69 6e 73 74 65 |fterScri|pt inste|
|00005450| 61 64 2e 20 20 59 6f 75 | 27 64 20 70 72 6f 62 61 |ad. You|'d proba|
|00005460| 62 6c 79 20 68 61 76 65 | 20 61 6e 20 41 66 74 65 |bly have| an Afte|
|00005470| 72 53 63 72 69 70 74 20 | 77 69 74 68 20 73 6f 6d |rScript |with som|
|00005480| 65 74 68 69 6e 67 20 6c | 69 6b 65 20 74 68 69 73 |ething l|ike this|
|00005490| 3a 20 20 0d 09 74 68 69 | 73 56 69 65 77 2e 76 69 |: ..thi|sView.vi|
|000054a0| 65 77 46 6f 72 6d 61 74 | 20 3a 3d 20 76 66 46 69 |ewFormat| := vfFi|
|000054b0| 6c 6c 43 75 73 74 6f 6d | 20 2b 20 76 66 50 65 6e |llCustom| + vfPen|
|000054c0| 28 31 29 20 2b 20 76 66 | 46 72 61 6d 65 42 6c 61 |(1) + vf|FrameBla|
|000054d0| 63 6b 3b 0d 09 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ck;..___|________|
|000054e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000054f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005500| 0d 54 65 6c 6c 69 6e 67 | 20 69 66 20 61 20 56 69 |.Telling| if a Vi|
|00005510| 65 77 20 69 73 20 48 69 | 67 68 6c 69 67 68 74 65 |ew is Hi|ghlighte|
|00005520| 64 2e 20 28 31 2f 31 33 | 2f 39 34 29 0d 51 3a 20 |d. (1/13|/94).Q: |
|00005530| 09 48 6f 77 20 63 61 6e | 20 49 20 74 65 6c 6c 20 |.How can| I tell |
|00005540| 69 66 20 61 20 67 69 76 | 65 6e 20 76 69 65 77 20 |if a giv|en view |
|00005550| 69 73 20 68 69 67 68 6c | 69 67 68 74 65 64 3f 0d |is highl|ighted?.|
|00005560| 41 3a 09 43 68 65 63 6b | 20 74 68 65 20 76 53 65 |A:.Check| the vSe|
|00005570| 6c 65 63 74 65 64 20 62 | 69 74 20 69 6e 20 74 68 |lected b|it in th|
|00005580| 65 20 76 69 65 77 46 6c | 61 67 73 2e 20 20 76 53 |e viewFl|ags. vS|
|00005590| 65 6c 65 63 74 65 64 20 | 73 68 6f 75 6c 64 20 6e |elected |should n|
|000055a0| 6f 74 20 62 65 20 73 65 | 74 20 62 79 20 79 6f 75 |ot be se|t by you|
|000055b0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 62 |r applic|ation, b|
|000055c0| 75 74 20 79 6f 75 20 63 | 61 6e 20 74 65 73 74 20 |ut you c|an test |
|000055d0| 69 74 20 74 6f 20 73 65 | 65 20 69 66 20 61 20 76 |it to se|e if a v|
|000055e0| 69 65 77 20 69 73 20 63 | 75 72 72 65 6e 74 6c 79 |iew is c|urrently|
|000055f0| 20 73 65 6c 65 63 74 65 | 64 20 28 74 68 61 74 20 | selecte|d (that |
|00005600| 69 73 2c 20 68 69 67 68 | 6c 69 67 68 74 65 64 2e |is, high|lighted.|
|00005610| 29 20 20 42 41 4e 44 28 | 76 69 65 77 46 6c 61 67 |) BAND(|viewFlag|
|00005620| 73 2c 20 76 53 65 6c 65 | 63 74 65 64 29 20 3c 3e |s, vSele|cted) <>|
|00005630| 20 30 20 69 73 20 54 52 | 55 45 20 69 66 20 74 68 | 0 is TR|UE if th|
|00005640| 65 20 76 69 65 77 20 69 | 73 20 73 65 6c 65 63 74 |e view i|s select|
|00005650| 65 64 2e 0d 09 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ed...___|________|
|00005660| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005670| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005680| 0d 50 49 43 54 73 20 69 | 6e 20 50 6f 70 75 70 73 |.PICTs i|n Popups|
|00005690| 20 20 28 32 2f 33 2f 39 | 34 29 0d 51 3a 20 09 43 | (2/3/9|4).Q: .C|
|000056a0| 61 6e 20 49 20 70 75 74 | 20 61 20 50 49 43 54 20 |an I put| a PICT |
|000056b0| 69 6e 20 61 20 70 6f 70 | 75 70 3f 0d 41 3a 09 4e |in a pop|up?.A:.N|
|000056c0| 6f 2e 20 20 42 75 74 20 | 79 6f 75 20 63 61 6e 20 |o. But |you can |
|000056d0| 75 73 65 20 62 69 74 6d | 61 70 73 20 64 65 72 69 |use bitm|aps deri|
|000056e0| 76 65 64 20 66 72 6f 6d | 20 50 49 43 54 73 20 61 |ved from| PICTs a|
|000056f0| 74 20 63 6f 6d 70 69 6c | 65 20 74 69 6d 65 2e 0d |t compil|e time..|
|00005700| 09 50 6f 70 75 70 73 2c | 20 63 72 65 61 74 65 64 |.Popups,| created|
|00005710| 20 74 68 72 6f 75 67 68 | 20 44 6f 50 6f 70 75 70 | through| DoPopup|
|00005720| 2c 20 6f 72 20 70 72 6f | 74 6f 50 69 63 6b 65 72 |, or pro|toPicker|
|00005730| 2c 20 20 77 69 6c 6c 20 | 4e 4f 54 20 68 61 6e 64 |, will |NOT hand|
|00005740| 6c 65 20 50 49 43 54 20 | 62 69 6e 61 72 79 20 6f |le PICT |binary o|
|00005750| 62 6a 65 63 74 73 20 69 | 6e 20 74 68 65 69 72 20 |bjects i|n their |
|00005760| 6c 69 73 74 20 6f 66 20 | 69 74 65 6d 73 2e 0d 09 |list of |items...|
|00005770| 48 6f 77 65 76 65 72 2c | 20 74 68 65 79 20 77 69 |However,| they wi|
|00005780| 6c 6c 20 68 61 6e 64 6c | 65 20 62 69 74 6d 61 70 |ll handl|e bitmap|
|00005790| 73 2e 20 20 54 68 65 20 | 64 69 73 74 69 6e 63 74 |s. The |distinct|
|000057a0| 69 6f 6e 20 69 73 20 73 | 75 62 74 6c 65 2c 20 61 |ion is s|ubtle, a|
|000057b0| 6e 64 20 69 6d 70 6f 72 | 74 61 6e 74 2e 20 20 49 |nd impor|tant. I|
|000057c0| 66 20 79 6f 75 20 75 73 | 65 20 74 68 65 20 63 61 |f you us|e the ca|
|000057d0| 6c 6c 20 22 47 65 74 50 | 49 43 54 41 73 42 69 74 |ll "GetP|ICTAsBit|
|000057e0| 73 22 20 74 6f 20 67 65 | 74 20 74 68 65 20 70 69 |s" to ge|t the pi|
|000057f0| 63 74 75 72 65 20 66 72 | 6f 6d 20 74 68 65 20 72 |cture fr|om the r|
|00005800| 65 73 6f 75 72 63 65 20 | 66 69 6c 65 2c 20 79 6f |esource |file, yo|
|00005810| 75 20 77 69 6c 6c 20 67 | 65 74 20 61 20 66 72 61 |u will g|et a fra|
|00005820| 6d 65 20 72 65 70 72 65 | 73 65 6e 74 69 6e 67 20 |me repre|senting |
|00005830| 74 68 65 20 70 69 63 74 | 75 72 65 2e 20 20 49 74 |the pict|ure. It|
|00005840| 20 77 69 6c 6c 20 62 65 | 20 63 6f 6e 76 65 72 74 | will be| convert|
|00005850| 65 64 20 66 72 6f 6d 20 | 61 20 50 49 43 54 20 74 |ed from |a PICT t|
|00005860| 6f 20 61 20 62 6c 61 63 | 6b 20 61 6e 64 20 77 68 |o a blac|k and wh|
|00005870| 69 74 65 20 37 32 2d 64 | 70 69 20 62 69 74 6d 61 |ite 72-d|pi bitma|
|00005880| 70 20 6f 6e 20 74 68 65 | 20 4d 61 63 20 61 74 20 |p on the| Mac at |
|00005890| 63 6f 6d 70 69 6c 65 20 | 74 69 6d 65 2c 20 61 6e |compile |time, an|
|000058a0| 64 20 72 65 6e 64 65 72 | 65 64 20 6f 6e 20 74 68 |d render|ed on th|
|000058b0| 65 20 4e 65 77 74 6f 6e | 20 61 74 20 38 30 20 64 |e Newton| at 80 d|
|000058c0| 70 69 20 61 74 20 72 75 | 6e 20 74 69 6d 65 2e 0d |pi at ru|n time..|
|000058d0| 09 49 66 20 79 6f 75 20 | 75 73 65 20 22 47 65 74 |.If you |use "Get|
|000058e0| 52 65 73 6f 75 72 63 65 | 22 20 6f 72 20 22 47 65 |Resource|" or "Ge|
|000058f0| 74 4e 61 6d 65 64 52 65 | 73 6f 75 72 63 65 22 20 |tNamedRe|source" |
|00005900| 79 6f 75 20 77 69 6c 6c | 20 69 6e 73 74 65 61 64 |you will| instead|
|00005910| 20 67 65 74 20 61 20 62 | 69 6e 61 72 79 20 6f 62 | get a b|inary ob|
|00005920| 6a 65 63 74 20 77 69 74 | 68 20 74 68 65 20 50 49 |ject wit|h the PI|
|00005930| 43 54 20 64 61 74 61 20 | 69 6e 20 69 74 2e 20 20 |CT data |in it. |
|00005940| 54 68 69 73 20 50 49 43 | 54 20 63 61 6e 20 62 65 |This PIC|T can be|
|00005950| 20 72 65 6e 64 65 72 65 | 64 20 74 6f 20 74 68 65 | rendere|d to the|
|00005960| 20 4e 65 77 74 6f 6e 20 | 73 63 72 65 65 6e 20 62 | Newton |screen b|
|00005970| 79 20 74 68 65 20 4e 65 | 77 74 6f 6e 20 61 74 20 |y the Ne|wton at |
|00005980| 72 75 6e 20 74 69 6d 65 | 2e 20 20 48 6f 77 65 76 |run time|. Howev|
|00005990| 65 72 2c 20 6f 6e 6c 79 | 20 63 6c 50 69 63 74 75 |er, only| clPictu|
|000059a0| 72 65 56 69 65 77 73 20 | 68 61 76 65 20 74 68 65 |reViews |have the|
|000059b0| 20 63 6f 64 65 20 69 6e | 20 74 68 65 6d 20 74 6f | code in| them to|
|000059c0| 20 70 72 6f 70 65 72 6c | 79 20 64 69 73 70 6c 61 | properl|y displa|
|000059d0| 79 20 50 49 43 54 20 62 | 69 6e 61 72 79 20 6f 62 |y PICT b|inary ob|
|000059e0| 6a 65 63 74 73 2e 20 20 | 0d 09 5f 5f 5f 5f 5f 5f |jects. |..______|
|000059f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005a00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005a10| 5f 5f 5f 5f 5f 0d 53 69 | 62 6c 69 6e 67 20 61 6e |_____.Si|bling an|
|00005a20| 64 20 50 61 72 65 6e 74 | 20 4a 75 73 74 69 66 69 |d Parent| Justifi|
|00005a30| 63 61 74 69 6f 6e 20 28 | 33 2f 31 30 2f 39 34 29 |cation (|3/10/94)|
|00005a40| 0d 51 3a 20 09 4d 79 20 | 75 6e 64 65 72 73 74 61 |.Q: .My |understa|
|00005a50| 6e 64 69 6e 67 20 69 73 | 20 74 68 61 74 20 49 20 |nding is| that I |
|00005a60| 63 61 6e 20 73 69 6d 75 | 6c 74 61 6e 65 6f 75 73 |can simu|ltaneous|
|00005a70| 6c 79 20 75 73 65 20 62 | 6f 74 68 20 73 69 62 6c |ly use b|oth sibl|
|00005a80| 69 6e 67 20 61 6e 64 20 | 70 61 72 65 6e 74 20 6a |ing and |parent j|
|00005a90| 75 73 74 69 66 69 63 61 | 74 69 6f 6e 20 66 6f 72 |ustifica|tion for|
|00005aa0| 20 61 20 76 69 65 77 20 | 61 6e 64 20 74 68 61 74 | a view |and that|
|00005ab0| 20 69 66 20 74 68 65 20 | 76 69 65 77 20 68 61 73 | if the |view has|
|00005ac0| 20 6e 6f 20 73 69 62 6c | 69 6e 67 73 20 28 69 66 | no sibl|ings (if|
|00005ad0| 20 20 69 74 27 73 20 61 | 20 66 69 72 73 74 20 63 | it's a| first c|
|00005ae0| 68 69 6c 64 2c 20 6f 72 | 20 61 6e 20 6f 6e 6c 79 |hild, or| an only|
|00005af0| 20 63 68 69 6c 64 29 20 | 74 68 65 6e 20 69 74 73 | child) |then its|
|00005b00| 20 70 61 72 65 6e 74 20 | 6a 75 73 74 69 66 69 63 | parent |justific|
|00005b10| 61 74 69 6f 6e 20 62 69 | 74 73 20 61 72 65 20 75 |ation bi|ts are u|
|00005b20| 73 65 64 2e 20 20 48 6f | 77 65 76 65 72 2c 20 74 |sed. Ho|wever, t|
|00005b30| 68 69 73 20 64 6f 65 73 | 6e 27 74 20 73 65 65 6d |his does|n't seem|
|00005b40| 20 74 6f 20 77 6f 72 6b | 20 69 66 20 49 20 75 73 | to work| if I us|
|00005b50| 65 20 66 75 6c 6c 20 70 | 61 72 65 6e 74 20 6a 75 |e full p|arent ju|
|00005b60| 73 74 69 66 69 63 61 74 | 69 6f 6e 2e 0d 41 3a 20 |stificat|ion..A: |
|00005b70| 09 54 68 61 74 27 73 20 | 63 6f 72 72 65 63 74 2e |.That's |correct.|
|00005b80| 20 49 66 20 79 6f 75 27 | 72 65 20 75 73 69 6e 67 | If you'|re using|
|00005b90| 20 61 20 73 69 62 6c 69 | 6e 67 20 20 6a 75 73 74 | a sibli|ng just|
|00005ba0| 69 66 69 63 61 74 69 6f | 6e 20 74 68 65 6e 20 79 |ificatio|n then y|
|00005bb0| 6f 75 20 63 61 6e 27 74 | 20 75 73 65 20 70 61 72 |ou can't| use par|
|00005bc0| 65 6e 74 20 66 75 6c 6c | 20 6a 75 73 74 69 66 69 |ent full| justifi|
|00005bd0| 63 61 74 69 6f 6e 20 61 | 6c 6f 6e 67 20 77 69 74 |cation a|long wit|
|00005be0| 68 20 69 74 2e 20 59 6f | 75 20 63 61 6e 20 75 73 |h it. Yo|u can us|
|00005bf0| 65 20 61 6e 79 20 6f 66 | 20 74 68 65 20 6f 74 68 |e any of| the oth|
|00005c00| 65 72 20 70 61 72 65 6e | 74 20 6a 75 73 74 69 66 |er paren|t justif|
|00005c10| 69 63 61 74 69 6f 6e 73 | 2e 0d 09 5f 5f 5f 5f 5f |ications|..._____|
|00005c20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005c30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005c40| 5f 5f 5f 5f 5f 5f 0d 27 | 76 69 65 77 46 72 6f 6e |______.'|viewFron|
|00005c50| 74 4d 6f 73 74 20 54 65 | 73 74 69 6e 67 2c 20 47 |tMost Te|sting, G|
|00005c60| 65 74 56 69 65 77 20 28 | 33 2f 32 35 2f 39 34 29 |etView (|3/25/94)|
|00005c70| 0d 09 54 68 65 20 76 69 | 65 77 46 72 6f 6e 74 4d |..The vi|ewFrontM|
|00005c80| 6f 73 74 20 74 65 73 74 | 20 77 69 74 68 20 47 65 |ost test| with Ge|
|00005c90| 74 56 69 65 77 20 69 73 | 20 62 61 73 65 64 20 6f |tView is| based o|
|00005ca0| 6e 20 76 69 65 77 73 20 | 74 68 61 74 20 68 61 76 |n views |that hav|
|00005cb0| 65 20 74 68 65 20 76 56 | 69 73 69 62 6c 65 20 61 |e the vV|isible a|
|00005cc0| 6e 64 20 76 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |nd vAppl|ication |
|00005cd0| 62 69 74 73 20 73 65 74 | 2e 20 57 65 20 63 61 6e |bits set|. We can|
|00005ce0| 27 74 20 67 75 61 72 61 | 6e 74 65 65 20 74 68 61 |'t guara|ntee tha|
|00005cf0| 74 20 74 68 69 73 20 69 | 73 20 74 68 65 20 63 61 |t this i|s the ca|
|00005d00| 73 65 20 77 69 74 68 20 | 66 75 74 75 72 65 20 73 |se with |future s|
|00005d10| 79 73 74 65 6d 73 2c 20 | 68 6f 77 65 76 65 72 2e |ystems, |however.|
|00005d20| 20 4e 6f 74 65 20 74 68 | 61 74 20 47 65 74 56 69 | Note th|at GetVi|
|00005d30| 65 77 20 69 73 20 72 65 | 61 6c 6c 79 20 75 73 65 |ew is re|ally use|
|00005d40| 64 20 66 6f 72 20 64 65 | 62 75 67 67 69 6e 67 20 |d for de|bugging |
|00005d50| 70 75 72 70 6f 73 65 73 | 2c 20 61 6e 64 20 6e 6f |purposes|, and no|
|00005d60| 74 20 66 6f 72 20 63 6f | 64 69 6e 67 2e 0d 09 5f |t for co|ding..._|
|00005d70| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005d80| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005d90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 0d 57 61 72 6e 69 |________|__.Warni|
|00005da0| 6e 67 20 55 73 69 6e 67 | 20 61 20 4d 65 74 68 6f |ng Using| a Metho|
|00005db0| 64 20 66 6f 72 20 6b 65 | 79 52 65 73 75 6c 74 20 |d for ke|yResult |
|00005dc0| 28 33 2f 32 38 2f 39 34 | 29 0d 54 68 65 20 4e 65 |(3/28/94|).The Ne|
|00005dd0| 77 74 6f 6e 20 50 72 6f | 67 72 61 6d 6d 65 72 27 |wton Pro|grammer'|
|00005de0| 73 20 47 75 69 64 65 20 | 73 74 61 74 65 73 20 74 |s Guide |states t|
|00005df0| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 75 73 65 20 |hat you |can use |
|00005e00| 61 20 6d 65 74 68 6f 64 | 20 66 6f 72 20 79 6f 75 |a method| for you|
|00005e10| 72 20 6b 65 79 52 65 73 | 75 6c 74 20 69 6e 20 61 |r keyRes|ult in a|
|00005e20| 20 4b 65 79 20 44 65 66 | 69 6e 69 74 69 6f 6e 73 | Key Def|initions|
|00005e30| 20 61 72 72 61 79 2e 20 | 57 68 61 74 20 69 74 20 | array. |What it |
|00005e40| 64 6f 65 73 20 6e 6f 74 | 20 74 65 6c 6c 20 79 6f |does not| tell yo|
|00005e50| 75 20 69 73 20 74 68 61 | 74 20 74 68 69 73 20 6d |u is tha|t this m|
|00005e60| 65 74 68 6f 64 20 77 69 | 6c 6c 20 62 65 20 63 61 |ethod wi|ll be ca|
|00005e70| 6c 6c 65 64 20 65 76 65 | 72 79 20 74 69 6d 65 20 |lled eve|ry time |
|00005e80| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 20 76 69 65 |the keyb|oard vie|
|00005e90| 77 20 72 65 64 72 61 77 | 73 20 28 74 68 69 6e 67 |w redraw|s (thing|
|00005ea0| 73 20 6c 69 6b 65 20 61 | 6e 20 4f 70 65 6e 2c 20 |s like a|n Open, |
|00005eb0| 53 65 74 56 61 6c 75 65 | 2c 20 44 69 72 74 79 2e |SetValue|, Dirty.|
|00005ec0| 2e 2e 20 77 69 6c 6c 20 | 63 61 75 73 65 20 74 68 |.. will |cause th|
|00005ed0| 69 73 29 2e 0d 41 6c 73 | 6f 2c 20 74 68 65 20 6d |is)..Als|o, the m|
|00005ee0| 65 74 68 6f 64 20 77 69 | 6c 6c 20 62 65 20 63 61 |ethod wi|ll be ca|
|00005ef0| 6c 6c 65 64 20 65 69 74 | 68 65 72 20 6f 6e 63 65 |lled eit|her once|
|00005f00| 20 6f 72 20 74 77 69 63 | 65 20 64 65 70 65 6e 64 | or twic|e depend|
|00005f10| 69 6e 67 20 6f 6e 20 74 | 68 65 20 73 65 74 74 69 |ing on t|he setti|
|00005f20| 6e 67 20 6f 66 20 74 68 | 65 20 6b 65 79 52 65 73 |ng of th|e keyRes|
|00005f30| 75 6c 74 73 41 72 65 4b | 65 79 63 6f 64 65 73 20 |ultsAreK|eycodes |
|00005f40| 73 6c 6f 74 3b 20 20 74 | 72 75 65 20 6d 65 61 6e |slot; t|rue mean|
|00005f50| 73 20 63 61 6c 6c 20 74 | 77 6f 20 74 69 6d 65 73 |s call t|wo times|
|00005f60| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 63 61 6c 6c |, otherw|ise call|
|00005f70| 20 6f 6e 63 65 2e 0d 49 | 66 20 79 6f 75 20 75 73 | once..I|f you us|
|00005f80| 65 20 61 20 6b 65 79 52 | 65 73 75 6c 74 20 6d 65 |e a keyR|esult me|
|00005f90| 74 68 6f 64 2c 20 6d 61 | 6b 65 20 73 75 72 65 20 |thod, ma|ke sure |
|00005fa0| 74 68 61 74 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 |that it |does not|
|00005fb0| 20 63 61 75 73 65 20 73 | 69 64 65 20 65 66 66 65 | cause s|ide effe|
|00005fc0| 63 74 73 20 28 6c 69 6b | 65 20 70 72 69 6e 74 69 |cts (lik|e printi|
|00005fd0| 6e 67 20 63 68 61 72 61 | 63 74 65 72 73 20 74 6f |ng chara|cters to|
|00005fe0| 20 27 76 69 65 77 46 72 | 6f 6e 74 4b 65 79 29 2e | 'viewFr|ontKey).|
|00005ff0| 0d 09 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..______|________|
|00006000| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006010| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 4e 75 |________|_____.Nu|
|00006020| 6d 65 72 69 63 20 49 6e | 70 75 74 20 46 69 65 6c |meric In|put Fiel|
|00006030| 64 73 2c 20 53 70 61 63 | 65 73 20 61 6e 64 20 52 |ds, Spac|es and R|
|00006040| 65 63 6f 67 6e 69 74 69 | 6f 6e 20 28 34 2f 38 2f |ecogniti|on (4/8/|
|00006050| 39 34 29 0d 51 3a 20 09 | 49 20 68 61 76 65 20 61 |94).Q: .|I have a|
|00006060| 20 6e 75 6d 65 72 69 63 | 20 69 6e 70 75 74 20 66 | numeric| input f|
|00006070| 69 65 6c 64 2e 20 20 49 | 20 64 69 73 63 6f 76 65 |ield. I| discove|
|00006080| 72 65 64 20 72 65 63 65 | 6e 74 6c 79 20 74 68 61 |red rece|ntly tha|
|00006090| 74 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |t if you| want to|
|000060a0| 20 77 72 69 74 65 20 22 | 31 32 2c 33 34 35 22 20 | write "|12,345" |
|000060b0| 62 75 74 20 69 6e 73 74 | 65 61 64 20 77 72 69 74 |but inst|ead writ|
|000060c0| 65 20 22 31 32 20 33 34 | 35 22 20 28 61 73 20 73 |e "12 34|5" (as s|
|000060d0| 6f 6d 65 20 70 65 6f 70 | 6c 65 20 64 6f 29 2c 20 |ome peop|le do), |
|000060e0| 74 68 65 20 74 65 78 74 | 20 69 73 20 72 65 63 6f |the text| is reco|
|000060f0| 67 6e 69 7a 65 64 20 61 | 73 20 22 31 32 20 33 34 |gnized a|s "12 34|
|00006100| 35 22 20 62 75 74 20 53 | 74 72 69 6e 67 54 6f 4e |5" but S|tringToN|
|00006110| 75 6d 62 65 72 20 6f 6e | 20 74 68 65 20 74 65 78 |umber on| the tex|
|00006120| 74 20 72 65 74 75 72 6e | 73 20 74 68 65 20 76 61 |t return|s the va|
|00006130| 6c 75 65 20 31 32 2e 0d | 41 3a 20 09 46 6f 72 20 |lue 12..|A: .For |
|00006140| 6e 75 6d 65 72 69 63 20 | 66 69 65 6c 64 73 2c 20 |numeric |fields, |
|00006150| 69 74 20 68 65 6c 70 73 | 20 61 20 6c 6f 74 20 69 |it helps| a lot i|
|00006160| 66 20 79 6f 75 20 73 65 | 74 20 74 68 65 20 76 4e |f you se|t the vN|
|00006170| 6f 53 70 61 63 65 73 20 | 66 6c 61 67 20 69 6e 20 |oSpaces |flag in |
|00006180| 74 68 65 20 54 65 78 74 | 46 6c 61 67 73 20 28 6e |the Text|Flags (n|
|00006190| 6f 74 20 76 69 65 77 46 | 6c 61 67 73 29 20 73 6c |ot viewF|lags) sl|
|000061a0| 6f 74 2e 20 20 53 65 74 | 74 69 6e 67 20 74 68 69 |ot. Set|ting thi|
|000061b0| 73 20 66 6c 61 67 20 77 | 69 6c 6c 20 73 6f 6c 76 |s flag w|ill solv|
|000061c0| 65 20 79 6f 75 72 20 70 | 72 6f 62 6c 65 6d 2e 0d |e your p|roblem..|
|000061d0| 09 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |._______|________|
|000061e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000061f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 0d 53 63 72 |________|____.Scr|
|00006200| 6f 6c 6c 69 6e 67 20 63 | 6c 45 64 69 74 56 69 65 |olling c|lEditVie|
|00006210| 77 73 20 77 69 74 68 20 | 53 65 74 4f 72 69 67 69 |ws with |SetOrigi|
|00006220| 6e 20 28 34 2f 31 31 2f | 39 34 29 0d 51 3a 20 09 |n (4/11/|94).Q: .|
|00006230| 49 20 61 6d 20 74 72 79 | 69 6e 67 20 74 6f 20 73 |I am try|ing to s|
|00006240| 63 72 6f 6c 6c 20 61 20 | 63 6c 45 64 69 74 56 69 |croll a |clEditVi|
|00006250| 65 77 20 69 6e 20 6d 79 | 20 61 70 70 6c 69 63 61 |ew in my| applica|
|00006260| 74 69 6f 6e 2e 20 54 68 | 65 20 63 68 69 6c 64 20 |tion. Th|e child |
|00006270| 76 69 65 77 73 20 6c 6f | 6f 6b 20 63 6f 72 72 65 |views lo|ok corre|
|00006280| 63 74 20 61 66 74 65 72 | 20 75 73 69 6e 67 20 74 |ct after| using t|
|00006290| 68 65 20 53 65 74 4f 72 | 69 67 69 6e 20 66 75 6e |he SetOr|igin fun|
|000062a0| 63 74 69 6f 6e 20 62 75 | 74 20 6e 65 77 6c 79 2d |ction bu|t newly-|
|000062b0| 63 72 65 61 74 65 64 20 | 76 69 65 77 73 20 61 6e |created |views an|
|000062c0| 64 20 76 69 65 77 20 64 | 72 61 67 67 69 6e 67 20 |d view d|ragging |
|000062d0| 64 6f 20 6e 6f 74 20 73 | 65 65 6d 20 74 6f 20 61 |do not s|eem to a|
|000062e0| 63 63 6f 75 6e 74 20 66 | 6f 72 20 74 68 65 20 6e |ccount f|or the n|
|000062f0| 65 77 20 6f 72 69 67 69 | 6e 20 63 6f 6f 72 64 69 |ew origi|n coordi|
|00006300| 6e 61 74 65 73 2e 20 48 | 6f 77 20 64 6f 20 49 20 |nates. H|ow do I |
|00006310| 73 63 72 6f 6c 6c 20 6d | 79 20 63 6c 45 64 69 74 |scroll m|y clEdit|
|00006320| 56 69 65 77 3f 0d 41 3a | 20 09 54 68 65 20 63 6c |View?.A:| .The cl|
|00006330| 45 64 69 74 56 69 65 77 | 20 63 6c 61 73 73 20 77 |EditView| class w|
|00006340| 61 73 20 6e 6f 74 20 64 | 65 73 69 67 6e 65 64 20 |as not d|esigned |
|00006350| 74 6f 20 62 65 20 73 63 | 72 6f 6c 6c 65 64 2c 20 |to be sc|rolled, |
|00006360| 73 6f 20 53 65 74 4f 72 | 69 67 69 6e 20 64 6f 65 |so SetOr|igin doe|
|00006370| 73 20 6e 6f 74 20 63 75 | 72 72 65 6e 74 6c 79 20 |s not cu|rrently |
|00006380| 77 6f 72 6b 20 63 6f 72 | 72 65 63 74 6c 79 20 77 |work cor|rectly w|
|00006390| 69 74 68 20 74 68 69 73 | 20 76 69 65 77 20 63 6c |ith this| view cl|
|000063a0| 61 73 73 2e 20 59 6f 75 | 20 63 61 6e 20 61 63 68 |ass. You| can ach|
|000063b0| 69 65 76 65 20 74 68 65 | 20 73 61 6d 65 20 65 66 |ieve the| same ef|
|000063c0| 66 65 63 74 20 62 79 20 | 63 72 65 61 74 69 6e 67 |fect by |creating|
|000063d0| 20 61 20 73 69 6d 70 6c | 65 20 63 6c 56 69 65 77 | a simpl|e clView|
|000063e0| 2c 20 6d 61 6b 69 6e 67 | 20 79 6f 75 72 20 63 6c |, making| your cl|
|000063f0| 45 64 69 74 56 69 65 77 | 20 61 20 63 68 69 6c 64 |EditView| a child|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.